安装包:无法找到包'CommonServiceLocator.MefAdapter
问题描述:
我喜欢在我的Visual Studio Community 2015项目中包含CommonServiceLocator.MefAdapter
。 当我尝试安装软件包:https://www.nuget.org/packages/CommonServiceLocator.MefAdapter/1.0.0安装包:无法找到包'CommonServiceLocator.MefAdapter
我得到的错误:
PM> Install-Package CommonServiceLocator.MefAdapter Install-Package : Unable to find package 'CommonServiceLocator.MefAdapter' At line:1 char:17 + Install-Package <<<< CommonServiceLocator.MefAdapter + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
答
退房,你对的NuGet服务器的路径是正确的。
你可以这样做:Tools-> Options-> NuGet Package Manager(使用搜索)。检查你的路径是https://api.nuget.org/v3/index.json
我已经创建了一个项目,我就在那里安装该软件包。