How to update nuget packages without package manag

2019-08-09 05:01发布

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. You need to update nuget packages per project. Is there a way to update nuget packages without using visual studio?

1条回答
再贱就再见
2楼-- · 2019-08-09 05:22

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:

  • Open command prompt and change the folder where Nuget.Exe is present.
  • NuGet.Exe Update [Solution File] -Id [Nuget package Id]

There are more switches to Nuget.Exe Update switch, like you can specify the nuget source. Make changes as required and you can successfully update nuget packages without opening the visual studio.

查看更多
登录 后发表回答