简体   繁体   English

如何使用NuGet软件包管理器控制台在Visual Studio 2012 Pro上安装OpenPop.NET?

[英]How can i install OpenPop.NET on my visual studio 2012 pro using the NuGet package manager console?

I have the console opened at the bottom and inside i type: 我在底部和内部打开了控制台,请输入:

Install-Package OpenPop.NET that's what they say to type in the website: 他们说在网站上输入Install-Package OpenPop.NET:

OpenPop.NET OpenPop.NET

I typed it in the console but i'm getting error: 我在控制台中输入了内容,但出现错误:

Install-Package : The current environment doesn't have a solution open. Install-Package:当前环境尚未打开解决方案。 At line:1 char:1 + Install-Package OpenPop.NET + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Install-Package], InvalidOperationException + FullyQualifiedErrorId : NuGetNoActiveSolution,NuGet.PowerShell.Commands.InstallPackageCommand 在第1行:char:1 +安装包OpenPop.NET + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo:InvalidOperation:(:) [Install-Package],InvalidOperationException + FullyQualifiedErrorId:NuGetNoActiveSolution,NuGet.PowerShell.Commands.InstallPackageCommand

Do i need to download something else ? 我是否需要下载其他内容?

The current environment doesn't have a solution open. 当前环境尚未打开解决方案。

You must start with a solution to add a package to it. 您必须先从解决方案开始,然后再向其中添加软件包。 You add NuGet packages to solutions, not Visual Studio. 您将NuGet程序包添加到解决方案,而不是Visual Studio。

The exception clearly states that you need to have a solution open. 该例外明确指出您需要打开解决方案。 First open a solution with a project, then try to install the package. 首先用项目打开一个解决方案,然后尝试安装该软件包。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM