Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, June 6, 2016 1:05 AM
Hi:
I am working in Visual Studio 2012. I have done something to cause NuGet to stop working. I am now getting:
> 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
I have installed Visual Studio 2015 and at the time Beta vNext. And I have upgraded powershell.
Phil
P.Huhn
All replies (8)
Wednesday, June 8, 2016 12:54 AM ✅Answered
Hi:
Installed before...
But, I found on Stack Over-flow, add to the install packages command
-Source nuget.org
and it worked!
Phil
P.Huhn
Monday, June 6, 2016 1:49 PM
Phil,
I found several solutions to this issue, varying by situation.
http://stackoverflow.com/questions/8314400/nuget-add-reference-error-while-installing-packages
I hope one resolves your problem.
Regards,
Holly Ta - MSFT
Tuesday, June 7, 2016 1:02 AM
Hi Holly:
I had seem the Stack Overflow article and I did a limited version of that. Just EF library... no change.
I also remove EF from the Packages config.
Phil
P.Huhn
Tuesday, June 7, 2016 6:29 AM
Dear Phil.,
Welcome to the MSDN forum.
Does this issue happen when you try to install the package EntityFramework in your project or for the project that already installed this package before?
If for the new project, maybe you should re-install the nuget manager. Or go to Control Panel—Programs and Features and repair the VS 2012.
If for the installed EntityFramework, you can try to delete it form the project references and pakcages.config, then re-add it. Or uninstall it like the command: UnInstall-Package EntityFramework -Version x.x.x, then re-isntall this package.
Best regards,
Sara
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Wednesday, June 8, 2016 12:53 PM
Phil,
Glad you found a solution. Could you post a link to the answer for other users?
Thanks,
Holly
Thursday, August 4, 2016 4:55 PM
I was also getting the "Failed to add reference to 'EntityFramework'" Message. I tried the powerShell solution, tried cleaning the package manager cache, no luck. Finally, registered vslangproj.olb, and Viola!!!
C:\Program Files\Common Files\microsoft shared\MSEnv>regsvr32 vslangproj.olb
Friday, August 5, 2016 6:41 AM
Hi Thomas,
Welcome to the MSDN forum.
Thank you for your sharing, and it will help other community members who have the same or similar to search the possible solution.
Best regards,
Sara
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.
Tuesday, August 22, 2017 11:10 AM
Hello,
I have same problem to add "Failed to add reference to 'EntityFramework" we are solve in vs 2017
Go to "Project" -> "Manage NuGet Packages" it open screen then go to setting in right hand side menu & click "setting" to open popup show in following screen & change the "Available Package Source" & check this check box & click ok then it work.