Wednesday, February 8, 2017

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

When loading an existing universal Windows App solution, I noticed that the shred project failed to load in Visual Studio 2013. When creating a new one, I ran into an error as shown below.

No exports were found that match the constraint: ContractName Microsoft.VisualStudio.Text.ITextDocumentFactoryService RequiredTypeIdentity Microsoft.VisualStudio.Text.ITextDocumentFactoryService

I solved this problem by clearing Visual Studio Component Model Cache.

Just delete or rename this folder: %AppData%\..\Local\Microsoft\VisualStudio\12.0\ComponentModelCache

No comments:

Post a Comment