简体   繁体   English

Visual Studio 2008菜单项重复

[英]Visual Studio 2008 Menu Items Duplicated

I occasionally get some issues with Visual Studio and ReSharper that causes me to run 我偶尔会遇到一些导致我运行的Visual Studio和ReSharper问题

devenv.exe /ResetSettings

After doing this, the menu items under "Data" are all duplicated, and each section is duplicated. 执行此操作后,“数据”下的菜单项都是重复的,每个部分都是重复的。 So it now looks like this: 所以它现在看起来像这样:

Show Data Sources
Add New Data Source...
-------------------------
Schema Compare
Schema Compare
Data Compare
Data Compare
-------------------------
Schema Compare
Schema Compare
Data Compare
Data Compare
-------------------------
Refactor
Refactor
-------------------------
Refactor
Refactor
-------------------------
T-SQL Editor
T-SQL Editor
-------------------------
T-SQL Editor
T-SQL Editor
-------------------------
Static Code Analysis
-------------------------
Schema View

I have the MS Visual Studio Team System 2008 Database Edition GDR 2 installed, and I think that is what's causing the issue. 我安装了MS Visual Studio Team System 2008数据库版GDR 2,我认为这就是造成这个问题的原因。

Is there a way to remove the duplicated items, or better yet, stop this from happening? 有没有办法删除重复的项目,或者更好的是,阻止这种情况发生?

I found this msdn article which seems to illustrate your problem and how to fix it. 我发现这篇msdn文章似乎说明了你的问题以及如何解决它。

FTA FTA

  1. Close all instances of Visual Studio Team System 2008 editions. 关闭Visual Studio Team System 2008版本的所有实例。

  2. At the Windows Command Prompt, type the following command: 在Windows命令提示符下,键入以下命令:

    %ProgramFiles%\\Microsoft Visual Studio 9.0\\DBPro\\DBProRepair.exe RemoveDBPro2008 %ProgramFiles%\\ Microsoft Visual Studio 9.0 \\ DBPro \\ DBProRepair.exe RemoveDBPro2008

  3. Press ENTER. 按ENTER键。

  4. At the Windows Command Prompt, type the following command: 在Windows命令提示符下,键入以下命令:

%ProgramFiles%\\Microsoft Visual Studio 9.0\\Common7\\IDE\\devenv.exe /ResetUser %ProgramFiles%\\ Microsoft Visual Studio 9.0 \\ Common7 \\ IDE \\ devenv.exe / ResetUser

I tried the whole ResetSettings and it didn't work. 我尝试了整个ResetSettings,但它没有用。 What I did do that worked for me was: 我做的对我有用的是:

(All in directory Users\\\\AppData\\Local\\Microsoft\\VisualStudio) 1.) Copy the 10.0 directory somewhere where you can reference it later 2.) Delete the 10.0 directory. (全部在目录Users \\\\ AppData \\ Local \\ Microsoft \\ VisualStudio中)1。)将10.0目录复制到稍后可以引用它的位置2.)删除10.0目录。 3.) Boot Visual Studio 2010 and voila! 3.)启动Visual Studio 2010并瞧!

All my plugins and everything were still intact. 我所有的插件和一切都完好无损。 I'm not sure what side-effects there will be, and I didn't have a terribly customized environment. 我不确定会有什么副作用,而且我没有一个非常自定义的环境。

After calling 打电话后

DBProRepair.exe RemoveDBPro2008

the menu entry "Data" in Visual Studio was disappeared. Visual Studio中的菜单项“数据”已消失。 I had to run 我不得不跑

DBProRepair.exe RestoreDBPro2008

to get it back in Visual Studio. 在Visual Studio中获取它。

运行这个:

%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe /safemode /setup

Open cmd in admin mode Change dir to dev instal path Run below command . 在管理模式下打开cmd将dir更改为dev安装路径运行以下命令。 ( but it will reset your initial settings , like c# preference setting on starting – that's not a big issue I think )  Devenv.exe /resetuserdata (但它会重置你的初始设置,比如启动时的c#首选项设置 - 我认为这不是一个大问题)Devenv.exe/ resetuserdata

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM