I am not able to install any package by Nuget. For example when I want install entity framework I receive following error:
install-package EntityFramework
Su
I also ran into this case when installing the AttributeRouting package. After googling a while, i tried the following steps and it works for me:
Tools > Extensions and Updates: uninstall NuGet Package Manager and reinstall it. Restart the Visual Studio.
Tools > Options > Package Manager > Package Sources: make sure to check for the nuget.org source.
Hope this help.
I had this problem in Visual Studio 2017 in Windows 10.
I had an existing project, and I updated the .Net Framework from 4.6.2 to 4.7.2, and the Entity Framework from 6.1.3 to 6.2.0. I rebuilt and deployed the application, but it failed to connect to my database because the reference to EntityFramework.SqlServer was broken.
I used the Package Manager UI to remove the Entity Framework from both projects in my solution. I attempted to re-add the Entity Framework, but it failed every time. I had to remove the Entity Framework from both projects and save the solution to source control (TFS), and then add the Entity Framework back in.
This successfully added the Entity Framework and the EntityFramework.SqlServer reference.
I had this problem too what i did was type in the package manager console Uninstall-Package EntityFramework -force
, then delete the EntityFramework Folder in Package Folder, and then install it again Install-Package EntityFramework
I had this problem too, the fix that worked for me was:
Suffer the same. In the end it occurs that in
Tools -> Options -> Nuget Package Manager -> Package Sources
nuget.org was unchecked. Checking it solve the problem.
I deleted the project, created fresh one, first added entity framework reference. it worked.. moved necessary code back into the project