user1205746
user1205746

Reputation: 3364

Unable to find Nuget package "entityframework"

I am pretty new to EF and have tried to install entityframework from the Package Manager console. But I get this error:

PM> install-package entityframework
install-package : Unable to find package 'entityframework'.
At line:1 char:1
+ install-package entityframework
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

Not sure why I am getting this error.

This is my settings for Package Source;

enter image description here

Is the Package Source setup correctly, if it is, what is the issue with installing EF?

Please advise.

Upvotes: 5

Views: 18067

Answers (3)

Safi Habhab
Safi Habhab

Reputation: 1077

Check what Package source is selected in the Package source list enter image description here

make sure that nuget.org is selected

Upvotes: 2

noobmaster007
noobmaster007

Reputation: 163

Simply restarting Visual Studio worked for me (for some reason).

Upvotes: 0

Peter Szekeli
Peter Szekeli

Reputation: 2800

Try updating your NuGet package Manager (via Tools -> Extensions and updates and then add a new feed with https://api.nuget.org/v3/index.json as source.

UPDATE

NuGet Package Manager
Go to Tools -> Extensions and updates, in the popup, select the Updates -> Visual Studio Gallery submenu. Check if NuGet is listed there. If so, update it.

Adding a new NuGet feed
Go to Tools -> Options -> NuGet Package Manager -> Package sources. Click on the green plus icon to add a new source. You can enter any name you want (e.g. nuget.org) and enter https://api.nuget.org/v3/index.json as source.

After this is done, in Package Manager Console, you'll see the newly created entry in the dropdown Package source.

Upvotes: 18

Related Questions