没有找到与约束匹配的导出:ContractName

use*_*943 2 javascript cordova visual-studio-2012

我使用的是MS Visual Studio Professional 2012,版本:11.0.51106.01.由于过去几天意识到我无法使用模板JavaScript创建新项目.我之前能做到这一点.我猜这可能是因为某些系统更新而发生的.

当我尝试创建一个新项目时,这是错误日志:

没有找到与约束匹配的导出:ContractName Microsoft.VisualStudio.Text.ITextDocumentFactoryService RequiredTypeIdentity Microsoft.VisualStudio.Text.ITextDocumentFactoryService

请尽早帮我解决这个问题,因为我无法在网上找到太多.

cmm*_*ser 12

检查链接:

http://blogs.microsoft.co.il/shair/2013/09/29/visual-studio-2012-no-exports-were-found-that-match-the-constraint-contract-name/

这对我有用.

删除ComponentModelCache文件夹内容.%APPDATA%.. \本地\微软\ VisualStudio的\ 11.0\ComponentModelCache

  • 这对我有用(在Visual Studio 2013中) (2认同)