javascript 没有找到与约束匹配的导出:ContractName
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21374506/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
no exports were found that match the constraint:ContractName
提问by user1985943
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.
我使用的是 MS Visual Studio Professional 2012,版本:11.0.51106.01。由于过去几天意识到我不再能够使用模板 JavaScript 创建一个新项目。我以前能够做到这一点。我猜这可能是由于某些系统更新而发生的。
Here is the error log when i try to create a new project:
这是我尝试创建新项目时的错误日志:
no exports were found that match the constraint:ContractName Microsoft.VisualStudio.Text.ITextDocumentFactoryService RequiredTypeIdentity Microsoft.VisualStudio.Text.ITextDocumentFactoryService
未找到与约束匹配的导出: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.
请尽快帮我解决这个问题,因为我在网上找不到太多东西。
回答by cmm user
Check the link :
检查链接:
This worked for me.
这对我有用。
Remove ComponentModelCache folder content. %AppData%..\Local\Microsoft\VisualStudio\11.0\ComponentModelCache
删除 ComponentModelCache 文件夹内容。%AppData%..\Local\Microsoft\VisualStudio\11.0\ComponentModelCache