Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NuGet; unable to get package as wrong version reported in Visual Studio 2012

I'm trying to build a solution but I get this error,

he 'Microsoft.Bcl.Build 1.0.14' package requires NuGet client version '2.8.1' or above, but the current NuGet version is '2.6.40619.9041'.

I've just upgraded NuGet package manager in Tools/"Extensions and Updates" which reports the version as 2.8.50313.31.

I've restarted VS2012, restarted the computer, cleaned the project and rebuilt, but I still can't get Visual Studio to recognise the new version and hence can't compile.

Thanks

like image 938
James Avatar asked Dec 08 '22 07:12

James


1 Answers

  1. Run Console (cmd) as Administrator
  2. Locate your .nuget folder that contains the NuGet.exe file (you may check error message to locate the path)
  3. execute this command NuGet.exe update -self

Took me all day to find that NuGet was bound to the individual project.

like image 115
AmpLid Avatar answered Jun 05 '23 19:06

AmpLid