在VS 2013 Professional Update 4中不能打开.cs文件 [英] .cs files can't be opened anymore in VS 2013 Professional Update 4
问题描述
我在星期一开始,我开了一个现有的解决方案,并试图打开Program.cs文件,但是遇到以下错误消息(粗略翻译):
没有找到导出满足约束:
ContractName
Microsoft.VisualStudio.Utilities.IContentTypeRegistryService
RequiredTypeIdentity
Microsoft.VisualStudio.Utilities.IContentTypeRegistryService
尝试在不同的解决方案中打开.cs文件,总是得到相同的消息。唯一的例外是:在Visual Studio实例之前打开的Visual Studio实例,其中首次发生异常是/不受此影响。
我设法得到它通过选择修复Visual Studio安装和重新启动而工作,但直到第二天才起作用。
我尝试搜索该消息,但没有任何东西。 p>
删除或重命名此文件夹:
C:\users\\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache\
I'm facing a problem where I can't open .cs files in Visual Studio 2013 after one day.
It started on Monday: I opened an existing solution and tried to open the Program.cs file but instead was met with the following error message (rough translation):
No exports were found that meet the constraint:
ContractName
Microsoft.VisualStudio.Utilities.IContentTypeRegistryService
RequiredTypeIdentity
Microsoft.VisualStudio.Utilities.IContentTypeRegistryService
I tried opening .cs files in different solutions and always got the same message. The only exception being: Any Visual Studio instance that was opened before the Visual Studio instance in which the exception first occured was/is not affected by this.
I managed to get it working by choosing to repair the Visual Studio installation and rebooting but that only worked until the next day.
I tried searching for that message but got nothing so far.
Delete or rename this folder:
C:\users\\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache\
这篇关于在VS 2013 Professional Update 4中不能打开.cs文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!