visual-studionugetvisual-studio-installer

Is there a way to download nuget.exe and then do an offline upgrade into the Visual Studio?


My visual studio is installed on a machine which doesn't have internet connection so I can't upgrade the NuGet Manager in VS. I'm trying to use another machine which has internet connection to download NuGet Package Manager and then install it for VVisual Studio.

Updated

Please check the screenshot: this is what I have installed on my machine. Also please note that I don't have internet connection on that machine. I cannot upgrade NuGet Package Manager in Visual Studio.

enter image description here

Can anybody help me on this?


Solution

  • Is there a way to download nuget.exe and then do an offline upgradation into the Visual Studio?

    The answer is yes. But if you want to upgrade the NuGet Manager in Visual Studio 2015, you should download the NuGet extension for Visual Studio instead of nuget.exe:

    Visual Studio 2015: https://dist.nuget.org/visualstudio-2015-vsix/latest/NuGet.Tools.vsix

    Before upgrade the extension, you should uninstall the old version by Tools->Extension and Updates...->Installed->NuGet Package Manager for Visual Studio, then restart Visual Studio, install that extension.

    If you are using Visual Studio 2017, you should download the upgrade Visual Studio instead of nuget.exe.

    Reason:

    NuGet Package Manager 4.x (PM UI and PM Console) are included with Visual Studio 2017 (all 15.x versions). Latest NuGet releases are delivered as part of Visual Studio updates.

    Note: nuget.exe itself is not included with any version of Visual Studio.

    Update:

    Since you are using Visual Studio 2010 with nuget manager 2.0.3 and you do not have the internet connection on that machine, you can try to uninstall that nuget manager, download the latest version from other machine, then install it. Or you can install that extension directly.

    Source: NuGet Package Manager

    Since I do not use such version Visual Studio, I am not sure if you can uninstall it or update it directly. If not, I am afraid you have to download the Visual Studio 2010 Ultimate version, then install it on that machine.

    Hope this helps.