Error in Visual Studio 2013: “No exports were found that match the constraint”

后端 未结 3 847
梦毁少年i
梦毁少年i 2021-02-18 21:17

I don\'t know what happen with my Visual Studio 2013 Update 2.

When I opened my project, it displayed this message:

No exports were foun

相关标签:
3条回答
  • 2021-02-18 21:24

    If you download Visual Studio 2013 from Microsoft you will find the path C:\Users\{username}\AppData\Local\Microsoft\WDexpress\12.0\ComponentModelCache.

    You should remove the file Microsoft.VisualStudio.Default.cache.

    Then restart Visual Studio.

    0 讨论(0)
  • 2021-02-18 21:32

    I had the same problem, so I shut down Visual Studio 2013, renamed the folder

    C:\Users\{username}\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache

    to ComponentModelCache-old, and restarted Visual Studio which rebuilt the ComponentModelCache folder and all is back to normal.

    0 讨论(0)
  • 2021-02-18 21:34

    It's not possible to help you without knowing:

    • the complete list of installed extensions,
    • the exact Visual Studio 2013 version,
    • the exact Windows version,
    • a brief reproduction script.

    The most important clue you can get about the root cause, can be seen in Visual Studio Activity Log. I suggest starting Visual Studio with activity logging enabled (devenv.exe /log), reproducing the error and checking the log.

    • How to: Use the Activity Log,
    • Troubleshooting Extensions with the Activity Log.
    0 讨论(0)
提交回复
热议问题