ezaspi
ezaspi

Reputation: 714

Nuget not working for Microsoft.Bcl.Build

For the command:

"NuGet.exe" install "C:\builddir\packages.config" -source "" -NonInteractive -RequireConsent -solutionDir "c:\solutiondir "

Microsoft.Bcl.Build gets error: Unable to find version '1.0.21' of package 'Microsoft.Bcl.Build'

but Microsoft.Bcl installs ok. How do I find the reason Microsoft.Bcl.Build cannot be found. I tried other versions, same error.

Upvotes: 1

Views: 2878

Answers (1)

ezaspi
ezaspi

Reputation: 714

Visual Studio places a copy of nuget.exe in the project folder called .nuget, which has the version 2.8.5. A newer version can be found at NuGet Distributions which works. Put the newer version 3.4.3 in the project and nuget installs all the missing packages before msbuild runs.

Upvotes: 2

Related Questions