Dennis Wanyonyi
Dennis Wanyonyi

Reputation: 378

Package Manager Console does not find an existing package

I am testing logging in via Facebook on sample project. In order to retrieve the email address of a logged in user from Facebook, I need to install Facebook package as per the accepted answer in this SO post I try to install the package by trying these two PMC commands

Install-Package Facebook -Version 7.0.6

or

Install-Package Facebook

I instead get the following errors respectively (which show the package doesn't exist )

install-package : Unable to find package 'Facebook'.

and

Install-Package : Unable to find version '7.0.6' of package 'Facebook'.

However when I use Manage Nuget Packages from Tools Menu and search for Facebook, I get the package. What really is wrong?

Upvotes: 1

Views: 1439

Answers (1)

pool pro
pool pro

Reputation: 2114

You can select Package source differently for the GUI and the Console. Try setting Console to nuget.org or all. Then do a search for your package: PM> Find-Package facebook and you should get the following results as in the Image below.

enter image description here

Upvotes: 1

Related Questions