unable to locate nuget.exe when building webservice on 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.
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.
I resolved the problem by right clicking Solution and click
Enable NuGet Package Restore
Executables might be ignored in your .gitignore via
*.exe
Add this line to .gitignore:
!.nuget/NuGet.exe