[英]Install-Package : Unable to find package 'CommonServiceLocator.MefAdapter
I like to include CommonServiceLocator.MefAdapter
in my Visual Studio Community 2015 project.我喜欢在我的 Visual Studio Community 2015 项目中包含
CommonServiceLocator.MefAdapter
。 When I try to install the package: https://www.nuget.org/packages/CommonServiceLocator.MefAdapter/1.0.0当我尝试安装包时: https : //www.nuget.org/packages/CommonServiceLocator.MefAdapter/1.0.0
I get the error:我收到错误:
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
PM> Install-Package CommonServiceLocator.MefAdapter Install-Package:无法找到包“CommonServiceLocator.MefAdapter”在行:1 char:17 + Install-Package <<<< CommonServiceLocator.MefAdapter + CategoryInfo :NotSpecified: (:) [Install- Package], Exception +fullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Check out that your path to NuGet server is correct.检查您的 NuGet 服务器路径是否正确。
You can do it in this way: Tools->Options->NuGet Package Manager(use search).您可以通过以下方式进行:工具->选项->NuGet 包管理器(使用搜索)。 Check that your path is https://api.nuget.org/v3/index.json
检查您的路径是否为https://api.nuget.org/v3/index.json
I had created a project and I could install this package there.我创建了一个项目,我可以在那里安装这个包。
check your NuGet package manager if this is happening probably it is empty hence add this如果发生这种情况,请检查您的 NuGet 包管理器,它可能是空的,因此添加此
https://api.nuget.org/v3/index.json in source and name it nuget.org源代码中的https://api.nuget.org/v3/index.json并将其命名为 nuget.org
hit update and check if it works.点击更新并检查它是否有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.