Tuesday, April 01, 2014

Visual Studio : Unable to locate NuGet.exe

Actual message is:

Error - Unable to locate 'C:\.....\.nuget\NuGet.exe'   

You sometimes get this when building a project that you cloned from GitHub.

Under .nuget/nuget.Targets in your project, change:


<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">false ...
 
to 
 
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">true ...

Enjoy!

14 comments:

Anonymous said...

It worked. Thanks!

Anonymous said...

It worked. Thanks!

Anonymous said...

You saved me a day. Thanks.

santosh kumar patro said...

Thanks a lot. This helped me to fix the issue :)

santosh kumar patro said...

Thanks a lot. This helped me to fix the issue :)

Anonymous said...

yessss! thanks!

Mohammad Beiroumi said...

Thanks a lot, simple hint big help

Anonymous said...

It worked. I owe you one.

Anonymous said...

I owe you one, thanks. It worked!

Raycel Graterol said...

Really It worked. Thanks you so much.

Raycel Graterol said...

It worked, thanks you very much.

Igor Monteiro said...

tks man..

Brian Johannesen said...

thnak you :)

Brian Johannesen said...

Thanks man :)