简体   繁体   中英

How to restore nuget packages without visual studio?

有没有一种方法可以自动还原解决方案的NuGet程序包而不使用Visual Studio(即使用NuGet命令行)?

You need the nuget.exe (which you can download from nuget.org ). And than execute

nuget restore packages.config

The full documentation of the nuget.exe is available here .

Yes, You can use NuGet command line the follwing will install the packages for a solution

Update-Package

This will update all the packages for a project

Update-Package -ProjectName MyProject

If you need more options please have a look at this link

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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