C#C
C#17mo ago
CrownedHaley

Weird Build Error

I have nuget hell happening in my project right now. I can build the application for windows and with the VS Docker for Desktop.

When we build it on a linux machine it gives us this error:

/opt/agent/_work/8/s/BASIC.TAP.BusinessImplementation/BASIC.TAP.BusinessImplementation.csproj : error NU1202: Package System.Security.Cryptography.Cng 5.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package System.Security.Cryptography.Cng 5.0.0 supports: netcoreapp3.0 (.NETCoreApp,Version=v3.0) [/opt/agent/_work/8/s/BASIC.TAP.RestService/BASIC.TAP.RestService.csproj]
2024-08-15T14:13:23.6401797Z          /opt/agent/_work/8/s/BASIC.TAP.BusinessImplementation/BASIC.TAP.BusinessImplementation.csproj : error NU1202: Package System.ComponentModel.Annotations 5.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package System.ComponentModel.Annotations 5.0.0 supports: netstandard2.1 (.NETStandard,Version=v2.1) [/opt/agent/_work/8/s/BASIC.TAP.RestService/BASIC.TAP.RestService.csproj]
2024-08-15T14:13:23.6401949Z          /opt/agent/_work/8/s/BASIC.TAP.BusinessImplementation/BASIC.TAP.BusinessImplementation.csproj : error NU1202: Package System.Runtime.CompilerServices.Unsafe 6.0.0 is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package System.Runtime.CompilerServices.Unsafe 6.0.0 supports: net6.0 (.NETCoreApp,Version=v6.0) [/opt/agent/_work/8/s/BASIC.TAP.RestService/BASIC.TAP.RestService.csproj]
2024-08-15T14:13:23.6402511Z 


This only change that was done was adding PDFSharp
image.png
Was this page helpful?