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
Running this command from an elevated prompt resolved my issue:
regsvr32 "C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\VsLangproj.olb"
Source: https://docs.nuget.org/Release-Notes/Known-Issues
In my case, deleting all occurrences of 'EntityFramework...' files in the Bin folder (open the folder in Windows Explorer) worked form me. I didn't have the packages folder in my project. The 'EntityFramework...' files were added by different action.
NOTE: You may need to rebuild project to remove error(s).
When I went to Visual Studio 2015 Update 3, it broke for me, I tried many of the steps, in other answers to clear package folders / caches / etc.
In the end I got it working via:
devenv
commands : like /resetuserdata
and /resetsettings
So just note doing a full uninstall won't clear out all your settings/cache data.
I ran into this issue as well. Unfortunately, the only solution that worked for me was completely uninstalling Visual Studio, deleting any folders left over after the uninstall, rebooting computer, and then re-installing Visual Studio.
Visual Studio 'repair' did not work for me. Only complete re-install.
For me, the problem was fixed with git clean -dfx
.
The problem occurred in my entity framework version. I was using an older version of entity framework, After deleting older version of EF and re installing it with the latest version available helped me solving this issue.