简体   繁体   English

如何在VS2010 Visual Studio 2010中将适当的Nuget程序包设置为C#项目

[英]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. 在“打包还原”部分中选择所有点。

More information here . 更多信息在这里

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

相关问题 如何在C#和VS2010中实现视觉继承 - How to achieve visual inheritance in C# and VS2010 视觉 Styles 不工作(C# VS2010) - Visual Styles not working (C# VS2010) 如何在Visual Studio 2010中的C#项目的已编译可执行文件中打包dll - How to package dlls in the compiled executable of a C# project in Visual Studio 2010 CUDA C#.Net示例项目? VS2010 - CUDA C# .Net Example Project? VS2010 在ubuntu上编译VS2010 c#解决方案(项目) - Compile VS2010 c# solution (project) on ubuntu VS2010 C#在构建期间缺少项目dll - VS2010 C# missing project dll during build 如何通过c#编程打开带有某些项目的Visual Studio exe(VS2008,VS2010,VS2012,VS2013)? - How to open Visual Studio exe's(VS2008,VS2010,VS2012,VS2013) with some projects by programming in c#? 如何在Visual Studio 2010中引用C#类库项目? - How to reference a C# Class Library project in Visual Studio 2010? 从未管理的项目(C / C ++ VS2005)调用托管代码(C#/ Visual Basic VS2010) - Calling managed code (C#/Visual Basic VS2010) from an unmanagened project (C/C++ VS2005) 如何在已完成并放入GAC中的VS2010中的C#项目中修改代码 - How can I amend code in a C# project in VS2010 that I have finalised and placed in the GAC
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM