Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.ComponentModel.DataAnnotations not found in .net standard 2.0, requires NuGet package #8

Open
dubnemo opened this issue Apr 19, 2024 · 2 comments

Comments

@dubnemo
Copy link

dubnemo commented Apr 19, 2024

Encountering this on build with the forked version:
The type or namespace name 'DataAnnotations' does not exist in the namespace 'System.ComponentModel' (are you missing an assembly reference?) [/home/dubnemo/ShippedItemInstancePlugin/ShippedItemInstancePlugin/ShippedItemInstancePlugin.csproj]

There is a lot of frustration for lack of support in .net standard 2.0 / 2.1 as shown here:
dotnet/standard#450

/home/dubnemo/ShippedItemInstancePlugin/ShippedItemInstancePlugin/ShippedItemInstancePlugin.csproj : error NU1101: Unable to find package System.ComponentModel.DataAnnotations. No packages exist with this id in source(s): nuget.org [/home/dubnemo/ShippedItemInstancePlugin/ShippedItemInstancePlugin.sln]

Thoughts?

@dubnemo
Copy link
Author

dubnemo commented Apr 19, 2024

Currently:

  <ItemGroup>
    <PackageReference Include="AgGatewayADAPTFramework" Version="2.3.0" />
    <PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
    <PackageReference Include="CoreCompat.System.ComponentModel.DataAnnotations" Version="4.2.3-r7" />
  </ItemGroup>

@dubnemo dubnemo changed the title System.ComponentModel.DataAnnotations not found; not in .net standard 2.0, NuGet package fails System.ComponentModel.DataAnnotations not found in .net standard 2.0, NuGet package fails Apr 20, 2024
@dubnemo dubnemo changed the title System.ComponentModel.DataAnnotations not found in .net standard 2.0, NuGet package fails System.ComponentModel.DataAnnotations not found in .net standard 2.0, requires NuGet package Apr 20, 2024
@dubnemo
Copy link
Author

dubnemo commented Apr 21, 2024

This is resolved, and will close on the V4 PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant