且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

NuGet 有丢失包的问题,​​如何恢复?

更新时间:2023-02-02 17:40:49

使用 Visual Studio 中的 Package Manager Console 运行此命令.

Use Package Manager Console in Visual Studio to run this command.

1.这将从解决方案中恢复所有包

nuget restore YourSolution.sln

2.如果您想重新安装软件包到与以前相同的版本已安装

2.If you want to reinstall the packages to the same versions as were previously installed

Update-Package -reinstall