简体   繁体   中英

Why isn't the Code Analysis tab showing on my project properties in Visual Studio 2010 Premium?

Either I'm going mad or the Code Analysis tab in Visual Studio has disappeared (or both).

I'm using Visual Studio 2010 Premium (I know this feature isn't in VS 2010 Professional) with Service Pack 1.

My project has a Code Contracts tab, but shouldn't there also be a Code Analysis tab? If I select Analyze | Configure Code Analysis For [this project] from the menu, the project settings are displayed but just with whatever tab was previously selected.

If I select Analyze | Configure Code Analysis For Solution from the menu, I do get a dialog box.

Am I right in thinking there should be a Code Analysis tab for the project? Any idea what might make it not show up?

Possible solutions:

  • Did you try:

devenv /SafeMode

Starts Visual Studio in safe mode, loading only the default environment and services.

devenv /setup

Forces Visual Studio to merge the resource metadata that describes menus, toolbars, and command groups, from all available VSPackages.

devenv /ResetSettings

Restores the default settings for Visual Studio and automatically launches its integrated development environment (IDE). Optionally resets the settings to the specified .vssettings file.

devenv /ResetSkipPkgs

Clears all options to skip loading added to VSPackages by users wishing to avoid loading problem VSPackages, then starts Visual Studio.


  • Did you notice the small "More Settings" arrow?

代码分析选项卡



  • If all fails, you should probably uninstall and reinstall Visual Studio.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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