Cannot find an instance of the Microsoft.VisualStudio.Shell.Interop.IVsReferenceManager service

In Visual Studio 2017, while trying to transfer the ASP.NET Core MVC project to another computer, and add the reference of Class Library getting the following error.

“Cannot find an instance of the Microsoft.VisualStudio.Shell.Interop.IVsReferenceManager service”

You can solve the problem using the following steps.

Step 1.

Run the Developer Command Prompt for VS 2017 as Administrator mode.

Step 2.

Navigate to the following installation folder using CD command

CD C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\PublicAssemblies

Note: In this command 2017 is version and Community is edition of Visual Studio, you may change as your version and edition you have.

Step 3.

Run the command

gacutil -i Microsoft.VisualStudio.Shell.Interop.11.0.dll

Step 4.

Restart the Visual Studio

Now you can add the reference to your ASP.NET Core project.

Related posts