In Visual Studio 2017 Asp.Net Core Project while trying to add reference of a Class Library getting this following error
"Cannot find an instance of the Microsoft.VisualStudio.Shell.Interop.IVsReferenceManager service." - Solved
Please follow the following steps
1.Launch Developer Command Prompt for VS 2017
While opening the command prompt, please make sure you run that as administrator
2.CD
C:\Program Files\Microsoft Visual Studio\2017\Community\Common7\IDE\PublicAssemblies
3.Run gacutil -i Microsoft.VisualStudio.Shell.Interop.11.0.dll
After installing , close and reopen your asp.net core project , and now try to add reference you should be able to add
4 comments:
How to Solved Same issue in VS 2019
1. Run Developer Command Prompt for VS 2019 AS ADMINISTRATOR!
2. cd C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\PublicAssemblies
3. gacutil -i Microsoft.VisualStudio.Shell.Interop.11.0.dll
4. Restart visual studio
5. Done
Im running the Command Prompt as a Admin but I got the following error:
- Failure adding assembly to the cache: Administrator permissions are needed to use the selected options. Use an administrator command prompt to complete these tasks.
I did the same steps for vs2019.when i run the
"gacutil -i Microsoft.VisualStudio.Shell.Interop.11.0.dll" command then
'gacutil' is not recognized as an internal or external command,
operable program or batch file. message is displaying. please kindly advice
Post a Comment