Install-Package: Cannot find package 'CommonServiceLocator.MefAdapter

I like to include CommonServiceLocator.MefAdapterVisual Studio Community 2015 in the project. When I try to install the package: https://www.nuget.org/packages/CommonServiceLocator.MefAdapter/1.0.0

I get an error message:

PM> Installation package CommonServiceLocator.MefAdapter Install-Package: Cannot find the package 'CommonServiceLocator.MefAdapter' On the line: 1 char: 17 + Install-Package <<<CommonServiceLocator.MefAdapter + CategoryInfo: NotSpecified: (:) [Install-Package] , exception + FullyQualifiedErrorId: NuGetCmdletUnhandledException, NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

+4
source share
2 answers

Check if your path to the NuGet server is correct.

You can do this as follows: Tools-> Options-> NuGet Package Manager (use search). Make sure your path is https://api.nuget.org/v3/index.json

enter image description here

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

+11
source

If you have multiple sources registered for Nuget, in Visual Studio 2015 you may need to select the correct source from the drop-down list in the upper left corner of the package manager console.

Lower

+4
source

Source: https://habr.com/ru/post/1611757/


All Articles