Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to locate nuget.exe when building webservice on appharbor

Tags:

appharbor

I'm trying to deploy my webservice at appharbor using codeplex. After trying it the first time and doing some research I found out that I had to use NuGet so the references are being found..

Now I only have 1 error left which I don't know how to solve

   "D:\temp\g3wyilvx.uln\input\WebService\Webservice.sln" (default target) (1) ->    "D:\temp\g3wyilvx.uln\input\WebService\Webservice\Webservice.csproj" (default target) (2) ->    (CheckPrerequisites target) ->       D:\temp\g3wyilvx.uln\input\WebService\.nuget\nuget.targets(72,9): error : Unable to locate 'D:\temp\g3wyilvx.uln\input\WebService\.nuget\nuget.exe' [D:\temp\g3wyilvx.uln\input\WebService\Webservice\Webservice.csproj] 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.17 

How am I suppose to solve this error ? Any useful links that might help me in the future are also appreciated.

like image 482
user1456158 Avatar asked Dec 18 '12 11:12

user1456158


1 Answers

I solved this by changing this line in my NuGet.targets file and setting it to true:

<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">true</DownloadNuGetExe> 

But you must restart Visual Studio or reload the solution (see this) for this to take effect.

like image 162
mcdrummerman Avatar answered Sep 28 '22 01:09

mcdrummerman