简体   繁体   English

没有Visual Studio的软件包管理器,如何更新nuget软件包?

[英]How to update nuget packages without package manager of visual studio?

How to update nuget packages without package manager of visual studio, if the projects referenced in solution have different nuget package folders, then updating nuget packages from solution becomes tedious job. 如何在没有Visual Studio软件包管理器的情况下更新nuget软件包,如果解决方案中引用的项目具有不同的nuget软件包文件夹,那么从解决方案中更新nuget软件包将变得繁琐。 You need to update nuget packages per project. 您需要每个项目更新nuget软件包。 Is there a way to update nuget packages without using visual studio? 有没有一种方法可以在不使用Visual Studio的情况下更新nuget软件包?

To update the nuget packages in solution, you can create a batch file with multiple commands or can execute command like mentioned below using command prompt: 要更新解决方案中的nuget软件包,您可以使用多个命令创建一个批处理文件,或者可以使用命令提示符执行如下所述的命令:

  • Open command prompt and change the folder where Nuget.Exe is present. 打开命令提示符,并更改存在Nuget.Exe的文件夹。
  • NuGet.Exe Update [Solution File] -Id [Nuget package Id] NuGet.Exe更新[解决方案文件] -Id [Nuget软件包ID]

There are more switches to Nuget.Exe Update switch, like you can specify the nuget source. 还有更多的Nuget.Exe Update开关,就像您可以指定nuget源一样。 Make changes as required and you can successfully update nuget packages without opening the visual studio. 根据需要进行更改,您无需打开Visual Studio就可以成功更新nuget程序包。

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

相关问题 无法使用 Visual Studio NuGet 包管理器控制台安装包 - Cannot install packages using Visual Studio NuGet Package Manager Console 如何在Visual Studio外部使用nuget包管理器从命令行安装/更新包? - How can I use the nuget Package Manager outside Visual Studio to install/update a package from the commandline? 如何在没有Visual Studio的情况下安装Nuget包? - How to install Nuget Package without Visual Studio? 在Visual Studio中的Package Manager控制台上更新多个包 - Update multiple packages on Package Manager Console in Visual Studio NuGet在Visual Studio中强制更新依赖包 - NuGet force update of dependency packages in Visual Studio Artifactory 中的 Nuget 包未显示在 Visual Studio 中的可用包中 - Nuget package in Artifactory does not show up in available packages in Visual Studio 无法在Visual Studio 2015中安装Nuget软件包管理器 - Not able to install Nuget Package Manager in Visual Studio 2015 在Visual Studio数据包管理器中显示Nuget包的所有者 - Show Owner of Nuget Package in Visual Studio Packet Manager Nuget package 管理器在 Visual Studio 2019 版本 16.7 中不起作用 - Nuget package manager not working in visual studio 2019 version 16.7 在 Visual Studio 2017 中找不到 nuget 包管理器? - Can't find the nuget package manager in visual studio 2017?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM