我跟随this easy tutorial开始使用C#中的Google+ API进行编码。不过,我已经卡住小时的步骤3中,其中,第一子步骤:在Visual Studio 2013上启用NuGet包还原
- 在Visual Studio中,单击项目>启用NuGet包还原>在对话框中回答是。
- 右键单击gplus-quickstart-csharp项目并选择管理NuGet包。
- 单击管理NuGet包窗口上的恢复。这将安装Google API客户端库。
当我点击Projet时,没有选项“启用NuGet包恢复”。
There is a Manage Nuget Packages选项,但没有任何恢复按钮或选项。
项目不建,并给我的错误:
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文档,我没有找到任何工作。我尝试下面的命令(在实施例中所描述的):
- d:\项目\ CONTOSO> nuget.exe恢复
- d:\项目\ CONTOSO> nuget.exe恢复contoso.sln
- d :\ projects> nuget.exe restore contoso
但无济于事。是的,NuGet已安装。有任何想法吗?谢谢!
可能是因为Visual Studio Express中没有此选项(如果使用的话)。也许试试看Visual Studio Professional或Ultimate吧? 2013年将是一个不错的选择。我也遇到过Google文档的问题。 – mihai 2014-10-11 15:55:52
我不认为它是Express,它只是Visual Studio 2013. – user3180077 2014-10-11 16:07:48
请参阅:http://www.xavierdecoster.com/migrate-away-from-msbuild-based-nuget-package-restore – jessehouwing 2014-10-11 16:20:04