Reputation: 4977
My visual studio is installed on a machine which doesn't have internet connection so I can't download and install packages from NuGet Manager in VS.
So I am looking for a way to use another machine which has internet connection to download packages and then install on VS.
Upvotes: 82
Views: 117084
Reputation: 10350
Alternatively to proposed answers, you can:
NuGet.config
:<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
<add key="Offline packages" value="offline-packages" />
</packageSources>
</configuration>
NOTE that:
NuGet.config
should be in the same directory as your solution (*.sln
) file.**/packages/*
from the .gitignore
.offline-packages
directory.Upvotes: 1
Reputation: 101
You can use the NuGet Package Explorer to download packages outside VS.
Upvotes: 10
Reputation: 137574
First, download the .nupkg
file:
Follow the instructions at How to download a Nuget package without nuget.exe or Visual Studio extension?
Or use my Google Chrome extension NuTake
Secondly, install the .nupkg
file into your project
Upvotes: 74