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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 12:21:33  来源:igfitidea点击:

Visual Studio 2010 hangs up when opening a .sql file

visual-studio-2010visual-studio

提问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

I was able to fix the issue by:

我能够通过以下方式解决问题:

  1. Downloading the SP1 DVD ISO from here.

  2. Executing DACProjectSystemSetup_enu.msifrom the root of the ISO.

  1. 这里下载 SP1 DVD ISO 。

  2. DACProjectSystemSetup_enu.msi从 ISO 的根目录执行。

These 2 simple steps resolved it.

这两个简单的步骤解决了它。

回答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 我按照以下步骤工作

  1. Navigate to C:\Users\USERNAME\AppData\Local\Microsoft\VisualStudio\12.0\
  2. Rename ComponentModelCache directory to 1ComponentModelCache1 and the folder will be recreated later
  3. Retry
  1. 导航到 C:\Users\USERNAME\AppData\Local\Microsoft\VisualStudio\12.0\
  2. 将 ComponentModelCache 目录重命名为 1ComponentModelCache1,稍后会重新创建该文件夹
  3. 重试