When our CI Server (CruiseControl.NET running as administrator) runs
dotnet build foo.sln
it fails with the following messages like
error NU1100: Unable to resolve 'Serilog (>= 2.7.1)' for '.NETCoreApp,Version=v2.2'. [C:\path\to\foo.sln]
Serilog only being an example. In fact every nuget package will result in the same error.
Why?
Running the same command from cmd.exe
succeeds.
It would seem like this question is a duplicate of some already asked questions, but I do not think so (the other questions are different).