简体   繁体   English

有没有办法下载nuget.exe,然后将其离线升级到Visual Studio?

[英]Is there a way to download nuget.exe and then do an offline upgradation 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. 我的Visual Studio安装在没有互联网连接的计算机上,因此我无法在VS中升级NuGet Manager。 I am looking for a way to use another machine which has internet connection to download NuGet Manager exe and then install on VS. 我正在寻找一种使用具有互联网连接的另一台计算机的方法来下载NuGet Manager exe,然后在VS上进行安装。

Updated 更新

please check below screen print which i have installed on the my machine.also please note that i don`t have internet connection on that machine. 请检查以下我已安装在我的计算机上的屏幕打印。还请注意,我在该计算机上没有互联网连接。 so i can not upgrade NuGet manager from Visual studio. 所以我不能从Visual Studio升级NuGet管理器。

在此处输入图片说明

can anybody help me on this? 有人可以帮我吗?

Thanks 谢谢

Is there a way to download nuget.exe and then do an offline upgradation into the Visual Studio? 有没有办法下载nuget.exe,然后将其离线升级到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中升级NuGet Manager ,则应下载Visual Studio的NuGet扩展而不是nuget.exe

Visual Studio 2015 : https://dist.nuget.org/visualstudio-2015-vsix/latest/NuGet.Tools.vsix Visual Studio 2015https : //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. 在升级扩展之前,您应该通过Tools > Extension and Updates... > Installed > NuGet Package Manager for Visual Studio卸载旧版本,然后重新启动Visual Studio,安装该扩展。

If you are using Visual Studio 2017 , you should download the upgrade Visual Studio instead of nuget.exe . 如果您使用的是Visual Studio 2017 ,则应下载升级的Visual Studio而不是nuget.exe

Reason: 原因:

NuGet Package Manager 4.x (PM UI and PM Console) are included with Visual Studio 2017 (all 15.x versions). NuGet软件包管理器4.x(PM UI和PM控制台)包含在Visual Studio 2017(所有15.x版本)中。 Latest NuGet releases are delivered as part of Visual Studio updates. 最新的NuGet版本作为Visual Studio更新的一部分提供。

Note: nuget.exe itself is not included with any version of Visual Studio. 注意:nuget.exe本身不包含在任何版本的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. 由于您将Visual Studio 2010与nuget Manager 2.0.3一起使用,并且该计算机上没有Internet连接,因此您可以尝试卸载该nuget Manager,从其他计算机上下载最新版本,然后进行安装。 Or you can install that extension directly. 或者您可以直接安装该扩展。

Source: NuGet Package Manager 来源: NuGet软件包管理器

Since I do not use such version Visual Studio, I am not sure if you can uninstall it or update it directly. 由于我没有使用Visual Studio这样的版本,因此不确定是否可以将其卸载或直接更新。 If not, I am afraid you have to download the Visual Studio 2010 Ultimate version, then install it on that machine. 如果没有,恐怕您必须下载Visual Studio 2010 Ultimate版本,然后将其安装在该计算机上。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM