A way to replace the NuGet Package Restore between Visual Studio 2013 and 2015.
The first step in your build process should be a direct call to NuGet.exe, for example:
nuget restore solution.sln
I put NuGet.exe in PATH on my build machine.
You should see the packets being restored in the console (or in the pipeline protocol protocol).
If not, you may need to look at the Jenkins proxy settings, depending on where your Jenkins is located on the network with respect to the Internet. I used to have to request a service account with privileged access to nuget.org/*
After restoring all the packages, you should see the package / folder as sibling to the solution file in the Jenkins workspace.
You can then invoke MSBuild with / t: Clean and / t: rebuild in turn and expect to go through the NuGet step.
source share