Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install-Package : Unable to find package 'CommonServiceLocator.MefAdapter

I like to include CommonServiceLocator.MefAdapter in my Visual Studio Community 2015 project. When I try to install the package: 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

like image 997
Thomas Kaemmerling Avatar asked Dec 06 '22 20:12

Thomas Kaemmerling


1 Answers

Check out that your path to NuGet server is correct.

You can do it in this way: Tools->Options->NuGet Package Manager(use search). Check that your path is https://api.nuget.org/v3/index.json

enter image description here

I had created a project and I could install this package there.

like image 125
RredCat Avatar answered Dec 21 '22 22:12

RredCat