Thứ Hai, 24 tháng 10, 2016

Visual Studio : No exports were found that match the constraint VS 2012, 2013, 2015


Visual studio 2015 tutorial - when i want to open or create new project using visual studio 2010, or VS 2012, Vs 2013 and Vs 2015 express, professional and Enterprise, i got the meessage "No exports were found that match the constraint contract name". How can I fix this problem?

we can deleting the Component Model Cache. or installing an extension to VS 2012 Express. Tools > Extensions and Updates > Online > Choose any then download. This apparently invalidates the cache causing VS to rebuild it.

but, sometimes, we will can't to open our visual studio, ho to fix it?

Deleting Component Model Cache

Visual Studio Pro / Enterprise

This issue can be resolved by deleting or clearing all the folders and files from this folder

%AppData%\[yourUsername]\Local\Microsoft\VisualStudio\11.0\ComponentModelCache

This folder is same as

C:\Users\[yourUsername]\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache

In windows 7 machines, path is different. When you type %appdata% n RUN command it opens the folder

C:\Users\[yourUsername]\AppData\Roaming

Visual Studio Express Edition

the Component Model Cache folder will be available in this folder

C:\Users\[yourUsername]\AppData\Local\Microsoft\WDExpress\11.0\ComponentModelCache


After found the "Component Model Cache" folder, just delete or rename it and restart your visual studio.

Component Model Cache Detail folder

For Visual Studio 2012 and later versions, folder "ComponentModelCache" available in here

C:\Users\[yourUsername]\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache

Visual Studio 2013

C:\Users\[yourUsername]\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache

Visual Studio 2015

C:\Users\[yourUsername]\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache


Here List of videos tutorial make simple application using Visual studio





See next lessons ..

Không có nhận xét nào:

Đăng nhận xét