When you add a reference to Visual studio 2017, an error is returned, indicating that the ReferenceManagerPackage cannot be correctly loaded. packagereference
Recently, 2017 was newly installed, but it was okay a few days ago, but when I recently added a reference,Error
---------------------------
Microsoft Visual Studio
---------------------------
The "ReferenceManagerPackage" package cannot be correctly loaded.
This problem may be caused by configuration changes or installation of another extension. You can obtain detailed information by viewing the file "C: \ Users \ Administrator \ AppData \ Roaming \ Microsoft \ VisualStudio \ 15.0 _ 3dfc125b \ ActivityLog. xml.
Restarting Visual Studio helps solve this problem.
Continue to display this error message?
---------------------------
Yes (Y) No (N)
---------------------------
I finally found Baidu and google.SolutionOriginal article:
After visual studio 2017 is installed, adding a reference always prompts that the ReferenceManagerPackage cannot be loaded. This problem has been plagued for two days until the following section is displayed on the Internet.
I just got this error after installation of Visual Studio 2017.
The solution was as follows.
- Launch Developer Command Prompt for VS 2017
- Cd c: \ Program Files \ Microsoft Visual Studio \ 2017 \ Community \ Common7 \ IDE \ PublicAssemblies
- Run gacutil-I Microsoft. VisualStudio. Shell. Interop.11.0.dll
You shoshould now see
Microsoft (R). NET Global Assembly Cache Utility. Version 4.0.30319.0
Copyright (c) Microsoft Corporation. All rights reserved.
Assembly successfully added to the cache
Restart Visual Studio and hopefully all will be well and you can add references.
The file C: \ Users \ USER \ AppData \ Roaming \ Microsoft \ VisualStudio \ 15.0 _ cc9cc69a \ ActivityLog. xmlIs useful for debugging any other assemblies that may be causing the issue. annoyingly it's very tempting to click No when asked never to see the error message again, which will suppress the error and this path so I thought I 'd post it here for reference.
Let's talk about the specific solution:
1. Open the Developer Command Prompt for VS 2017 in VS2017.
2. Enter
Cd c: \ Program Files \ Microsoft Visual Studio \ 2017 \ Community \ Common7 \ IDE \ PublicAssemblies and press enter (Note: Here cd c: \ Program Files \ Microsoft Visual Studio \ 2017 \ Community \ Common7 \ IDE \ PublicAssemblies is the path under your installation directory. For example, I am VS017 installed on drive D, my path is D: \ working software \ vs2017 \ Common7 \ IDE \ PublicAssemblies)
Then press Enter.
3. Enter gacutil-I Microsoft. VisualStudio. Shell. Interop.11.0.dll In the CMD window and press Enter. The result is as follows:
4. In the last step, restart VS2017!
Hope to help you!
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.