C
C#•4mo 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
/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
No description
10 Replies
x0rld 👻 🎃
try to clean & restore ?
CrownedHaley
CrownedHaleyOP•4mo ago
That didn't work
reflectronic
reflectronic•4mo ago
uh, what version of the .NET SDK is the build using it should say at the very top when you first run dotnet build or whatever
CrownedHaley
CrownedHaleyOP•4mo ago
2024-08-15T20:42:36.1627313Z ==============================================================================
2024-08-15T20:42:36.1627370Z Task : .NET Core
2024-08-15T20:42:36.1627411Z Description : Build, test, package, or publish a dotnet application, or run a custom dotnet command. For package commands, supports NuGet.org and authenticated feeds like Package Management and MyGet.
2024-08-15T20:42:36.1627509Z Version : 2.141.6
2024-08-15T20:42:36.1627550Z Author : Microsoft Corporation
2024-08-15T20:42:36.1627589Z Help : [More Information](https://go.microsoft.com/fwlink/?linkid=832194)
2024-08-15T20:42:36.1627313Z ==============================================================================
2024-08-15T20:42:36.1627370Z Task : .NET Core
2024-08-15T20:42:36.1627411Z Description : Build, test, package, or publish a dotnet application, or run a custom dotnet command. For package commands, supports NuGet.org and authenticated feeds like Package Management and MyGet.
2024-08-15T20:42:36.1627509Z Version : 2.141.6
2024-08-15T20:42:36.1627550Z Author : Microsoft Corporation
2024-08-15T20:42:36.1627589Z Help : [More Information](https://go.microsoft.com/fwlink/?linkid=832194)
.net core 2.141.6 i am assuming
reflectronic
reflectronic•4mo ago
well, there is no .net core 2.141.6 tht's the version of the azure pipelines task i guess
CrownedHaley
CrownedHaleyOP•4mo ago
No description
CrownedHaley
CrownedHaleyOP•4mo ago
is it that version at the bottom?
x0rld 👻 🎃
it's msbuild not dotnet
reflectronic
reflectronic•4mo ago
well that seems like it's up to date what is this nuget.config file that is being passed
CrownedHaley
CrownedHaleyOP•4mo ago
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Want results from more Discord servers?
Add your server