ADAPT / ShippedItemInstancePlugin

Plugin to read the OAGIS ShippedItemInstance document
Eclipse Public License 1.0
0 stars 3 forks source link

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

Open dubnemo opened 5 months ago

dubnemo commented 5 months ago

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: https://github.com/dotnet/standard/issues/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 commented 5 months ago

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 commented 5 months ago

This is resolved, and will close on the V4 PR