[英]How to set appropiate Nuget package to a C# Project in VS2010 Visual Studio 2010
When I run a C# Project I get this error message: 当我运行C#项目时,出现以下错误消息:
This project references NuGet package(s) that are missing on this computer. 该项目引用了此计算机上缺少的NuGet软件包。 Enable NuGet Package Restore to download them. 启用NuGet软件包还原以下载它们。 For more information, see http://go.microsoft.com/fwlink/?LinkID=317567 . 有关更多信息,请参见http://go.microsoft.com/fwlink/?LinkID=317567 。
How can I set appropiate package to my project? 如何为项目设置适当的软件包? I'm ssing VS 2010. 我正在唱VS 2010。
Try to right click on the Solution node in Solution Explorer and select "Enable NuGet Package Restore". 尝试在解决方案资源管理器中右键单击“解决方案”节点,然后选择“启用NuGet软件包还原”。 And after that right click on the Solution node in Solution Explorer and select "Restore NuGet Packages". 然后,右键单击“解决方案资源管理器”中的“解决方案”节点,然后选择“还原NuGet软件包”。
If "Restore NuGet Packages" did not appear or you do not have "Enable NuGet Package Restore", try to go to project options and select "NuGet Package Manager" -> General. 如果没有出现“ Restore NuGet Packages”或您没有“启用NuGet软件包还原”,请尝试转到项目选项并选择“ NuGet Package Manager”->“常规”。 Choose all points in "Package Restore" section. 在“打包还原”部分中选择所有点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.