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!

17 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!

Unknown 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!

Anonymous said...

Really It worked. Thanks you so much.

Anonymous said...

It worked, thanks you very much.

Unknown said...

tks man..

Unknown said...

thnak you :)

Unknown said...

Thanks man :)

Unknown said...

Thanks a lot - It worked like a charm!

Unknown said...

Thanks a lot - worked like a charm!

Unknown said...

Thanks!