Microsoft Visual Studio 2012 中的错误:找不到与约束匹配的导出 [英] Error in Microsoft Visual Studio 2012 :No exports were found that match the constraint

查看:24
本文介绍了Microsoft Visual Studio 2012 中的错误:找不到与约束匹配的导出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在 VS2012 中打开我的项目时,出现错误

When I opened my Project in VS2012 , I got an error

未找到与约束匹配的导出:

No exports were found that match the constraint:

合同名称
Microsoft.VisualStudio.Utilities.IContentTypeRegistryService
RequiredTypeIdentity
Microsoft.VisualStudio.Utilities.IContentTypeRegistryService

ContractName
Microsoft.VisualStudio.Utilities.IContentTypeRegistryService
RequiredTypeIdentity
Microsoft.VisualStudio.Utilities.IContentTypeRegistryService

请在继续之前更正.(您可以重命名当前的 web.config 并添加一个新的).

Please correct before proceeding. (You might rename the current web.config and add a new one).

为什么会发生这种情况,有人可以提出解决方案吗?

Why did this happen, can someone please suggest a solution?

推荐答案

我通过清除 Visual Studio 组件模型缓存解决了这个问题.只需删除或重命名此文件夹:

I solved this problem by clearing the Visual Studio Component Model Cache. Just delete or rename this folder:

%AppData%\..\Local\Microsoft\VisualStudio\11.0\ComponentModelCache

%AppData%\..\Local\Microsoft\VisualStudio\11.0\ComponentModelCache

或者,对于 Visual Studio 2013:

Or, for Visual Studio 2013:

%AppData%\..\Local\Microsoft\VisualStudio\12.0\ComponentModelCache

%AppData%\..\Local\Microsoft\VisualStudio\12.0\ComponentModelCache

这篇关于Microsoft Visual Studio 2012 中的错误:找不到与约束匹配的导出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆