© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
14 replies
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 
/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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Build Error
C#CC# / help
2y ago
Build failures error
C#CC# / help
2y ago
❔ build failed. error
C#CC# / help
3y ago