【问题标题】:no exports were found that match the constraint:ContractName [duplicate]未找到与约束匹配的导出:ContractName [重复]
【发布时间】:2014-02-17 21:59:48
【问题描述】:

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

这是我尝试创建新项目时的错误日志:

未找到与约束匹配的导出:ContractName Microsoft.VisualStudio.Text.ITextDocumentFactoryService 必需的类型标识 Microsoft.VisualStudio.Text.ITextDocumentFactoryService

请尽快帮我解决这个问题,因为我在网上找不到很多东西。

【问题讨论】:

    标签: javascript visual-studio-2012 cordova


    【解决方案1】:

    检查链接:

    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

    【讨论】:

    • 这对我有用(在 Visual Studio 2013 中)
    • 这对我有用(VS2012)。节省我的时间!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-06
    • 2022-10-06
    • 2014-07-13
    • 2013-10-13
    • 2013-07-09
    相关资源
    最近更新 更多