Use nuget.exe before devenv: Download and install the standalone nuget.exe tool from the official NuGet website: https://www.nuget.org/downloads: https://www.nuget.org/downloads. Open a command prompt and navigate to your solution directory. Run the following command to restore NuGet packages: nuget restore ACustomerApp.sln Once the packages are restored, you can use your original devenv command to build the solution: devenv ACustomerApp.sln /rebuild "Release|Any Cpu"
How to restore nuget package with devenv.exe
Preethi Ravi
80
Reputation points
I have an msi installer with some nuget packages used. I want to build this using devenv. I am using the below command but it fails since it is not restoring nuget package. Furthermore I am not using msbuild since it does not support vdproj.
devenv ACustomerApp.sln /rebuild "Release|Any Cpu"
How to restore nuget package with devenv?