Monday, April 14, 2014

Error in Visual Studio 2013 when creating a new project: “No exports were found that match the constraint"

After installing some updates, my Visual Studio went bananas. When I try to create a new project, it always fails with the following error message:

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

No idea what’s causing the issue, but I was able to fix the issue based on the workaround mentioned on the Connect site:

  • Delete the ComponentModelCache folder at %AppData%\Local\Microsoft\VisualStudio\12.0.

1 comment:

Anonymous said...

since vs 6.0, I've never seen a problem like this one!
It's work for me!
thanks!