Nuget安装包

时间:2017-05-23 00:29:02

标签: windows visual-studio azure nuget

我正在尝试安装" Microsoft.ProjectOxford.SpeechRecognition-x64"在Visual Studio上使用Nuget。我收到以下错误。这是什么意思?感谢

PM> Install-Package Microsoft.ProjectOxford.SpeechRecognition-x64

Install-Package : Solution is not saved. Please save your solution before managing NuGet packages. At line:1 char:1
+ Install-Package Microsoft.ProjectOxford.SpeechRecognition-x64
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetUnsavedSolution,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

1 个答案:

答案 0 :(得分:0)

NuGet 3.0中的NuGet团队deprecated solution level packages。因此,将NuGet包安装到解决方案中,不支持任何项目。您需要创建一个项目,然后将该包添加到项目中。