启用的NuGet包上的Visual Studio 2013恢复 [英] Enable NuGet Package Restore on Visual Studio 2013
问题描述
我在下面的这个简单的教程开始用C#了Google+ API编码。不过,我一直停留了几个小时在第3步,其中第一个分步骤是:
I'm following this easy tutorial to start coding with the Google+ API in C#. However, I've been stuck for hours on Step 3, where the first substeps are:
- 在Visual Studio中,单击项目>启用的NuGet包还原>在对话框中回答是。
- 在gplus-快速入门-CSHARP项目上单击右键,然后选择管理的NuGet包。
- 单击恢复在管理的NuGet包窗口。这将安装谷歌API客户端库。
当我点击谟,没有选择启用的NuGet包还原。
When I click on Projet, there is no option "Enable NuGet Package Restore".
有是的一个管理的NuGet Packages选项,但没有还原按钮或选择任何责任。
There is a Manage Nuget Packages option, but no Restore button or option whatsoever.
本项目不建立和给我的错误:
The project doesn't build and gives me the error:
错误1该项目引用缺少的NuGet包(S)在
这台计算机。启用的NuGet包还原下载它们。对于
的更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105一>。
丢失的文件是
C:\Users\Documents\google + \gplus,快速入门,csharp\.nuget\NuGet.targets。 C:\Users\Documents\google + \gplus-快速入门-csharp\gplus-快速入门-csharp\gplus-快速入门-csharp.csproj 201 5 gplus-快速入门-CSHARP
Error 1 This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is C:\Users\Documents\google+\gplus-quickstart-csharp\.nuget\NuGet.targets. C:\Users\Documents\google+\gplus-quickstart-csharp\gplus-quickstart-csharp\gplus-quickstart-csharp.csproj 201 5 gplus-quickstart-csharp
我去微软的网站上,它只是重定向到的NuGet文档,我没有找到任何工作。我想下面的命令(在例子说明):
I went on the microsoft website and it only redirects to the NuGet documentation where I didn't find anything that works. I tried the following commands (described in the examples):
- D:\projects\contoso> nuget.exe恢复
- D:\projects\contoso> nuget.exe恢复contoso.sln
- D:\projects> nuget.exe恢复CONTOSO
但无济于事。是的,的NuGet安装。有任何想法吗? !谢谢
but to no avail. And yes, NuGet is installed. Any ideas? Thanks!
推荐答案
要找到菜单项:启用的NuGet包还原,在解决方案资源管理器中右键单击解决方案 - 不在项目
To find the menu item: "enable nuget package restore" right-click in the solution explorer on the solution - not on the project.
您得到一个消息:
是否要配置此解决方案,以下载和恢复建设中失踪的NuGet包?
Do you want to configure this solution to download and restore missing NuGet packages during build?
这难道不是你在寻找?
这篇关于启用的NuGet包上的Visual Studio 2013恢复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!