Error:
S:\Program Files\Microsoft Team Foundation Server 12.0\Tools\nuget.exe restore “S:\Build\8\<name>\<name>\src\<name>.sln” -NonInteractive
WARNING: Unable to connect to the remote server
WARNING: Unable to connect to the remote server
Unable to find version ‘1.2.2’ of package ‘elmah’.
Unable to find version ‘1.2.2’ of package ‘elmah.corelibrary’
Solution:
0. Connect to the internet
1. Open Visual Studio
2. Open the Project
3. Open Tools, NuGet Package Manager, Package Manager Console.
4. Enter: Get-Package -ListAvailable -Filter <name of package>
for example Get-Package -ListAvailable -Filter elmah
5. Enter Install-Package <name>
For example: Install-Package elmah
Repeat for each missing package.
6. In Source Control Explorer, right click on the Packages folder of the Project.
7. Click on Add Items to Folder, add the new folders in the local Packages folder.
8. In Source Control Explorer, right click on the Packages folder of the Project.
9. Click on Check in Pending Changes
Rebuild the solution.
Comments are closed