没有找到匹配约束的导出:ContractName [英] no exports were found that match the constraint:ContractName
问题描述
我使用的是MS Visual Studio Professional 2012,版本:11.0.51106.01。从过去几天意识到,我不能再创建一个新的项目与模板JavaScript。我能够做到这一点。我猜这可能是由于一些系统更新发生。
I am using MS Visual Studio Professional 2012, Version: 11.0.51106.01. Since past few days realized that i am no more able to create a new project with template JavaScript. I was able to do this before. I am guessing this might have happened due to some system update.
这是我尝试创建一个新项目时的错误日志:
Here is the error log when i try to create a new project:
找不到符合约束的导出:ContractName
Microsoft.VisualStudio.Text.ITextDocumentFactoryService
RequiredTypeIdentity
Microsoft.VisualStudio.Text.ITextDocumentFactoryService
no exports were found that match the constraint:ContractName Microsoft.VisualStudio.Text.ITextDocumentFactoryService RequiredTypeIdentity Microsoft.VisualStudio.Text.ITextDocumentFactoryService
请帮助我最早解决这个问题,因为我还没有找到很多在线。
Please help me resolve this issue at the earliest as i have not been able to find much online.
推荐答案
检查链接:
http://blogs.microsoft.co.il/shair/2013/09/29/visual-studio- 2012-no-exports-were-found-that-match-the-constraint-contract-name /
这对我有用。
删除ComponentModelCache文件夹内容。
%AppData%.. \Local\Microsoft\VisualStudio\11.0\ComponentModelCache
Remove ComponentModelCache folder content. %AppData%..\Local\Microsoft\VisualStudio\11.0\ComponentModelCache
这篇关于没有找到匹配约束的导出:ContractName的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!