visual-studio 打开 .sql 文件时 Visual Studio 2010 挂起
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3526906/
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
Visual Studio 2010 hangs up when opening a .sql file
提问by Lee Grissom
I launch VS 2010, and simply open any ordinary (or blank) .sql file and it shows up incorrectly drawn inside the IDE. It draws the document tab, but nothing else. If I type on the keyboard, VS locks up. This only appears to be a problem with files that have the extension ".sql" and has no bearing on the actual content. I also noticed that in the Solution Explorer, those .sql files show the icon that is the same one associated with .js files.
我启动 VS 2010,只需打开任何普通(或空白).sql 文件,它就会在 IDE 中错误地显示出来。它绘制文档选项卡,但仅此而已。如果我在键盘上打字,VS 会锁定。这似乎只是扩展名为“.sql”的文件的问题,与实际内容无关。我还注意到,在解决方案资源管理器中,那些 .sql 文件显示的图标与 .js 文件关联的图标相同。
回答by Lee Grissom
Problem solved. I was able to resolve the problem by running the DACProjectSystemSetup_enu.msiinstaller found on the VS2010-SP1 ISOunder the root directory. You mightalso need to re-install DACFramework_enu.msiand TSqlLanguageService_enu.msi.
问题解决了。通过运行根目录下的VS2010-SP1 ISO上的DACProjectSystemSetup_enu.msi安装程序,我能够解决该问题。您可能还需要重新安装和。DACFramework_enu.msiTSqlLanguageService_enu.msi
I believe the problem was created as a result of installing SQL Server 2008 R2 after installing VS2010.
我相信这个问题是由于在安装 VS2010 之后安装 SQL Server 2008 R2 造成的。
回答by Mauricio Feijo
回答by satya 85
Copy and Install below MSIs from VS 2010 Setup folder:
从 VS 2010 安装文件夹中复制并安装以下 MSI:
- DACFramework_enu.msi
- DACProjectSystemSetup_enu.msi
- TSqlLanguageService_enu.msi
- DACFramework_enu.msi
- DACProjectSystemSetup_enu.msi
- TSqlLanguageService_enu.msi
回答by Omgee Cares
microsoft.visualstudio.editor.implementation clr20r3 I got mine working with the following steps
microsoft.visualstudio.editor.implementation clr20r3 我按照以下步骤工作
- Navigate to C:\Users\USERNAME\AppData\Local\Microsoft\VisualStudio\12.0\
- Rename ComponentModelCache directory to 1ComponentModelCache1 and the folder will be recreated later
- Retry
- 导航到 C:\Users\USERNAME\AppData\Local\Microsoft\VisualStudio\12.0\
- 将 ComponentModelCache 目录重命名为 1ComponentModelCache1,稍后会重新创建该文件夹
- 重试

