Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 344
Matthew Strawbridge Avatar asked Mar 26 '12 09:03

Matthew Strawbridge


1 Answers

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?

Code Analysis tab


  • Did you apply or re-apply Visual Studio 2010 SP1?

  • If all fails, you should probably uninstall and reinstall Visual Studio.
like image 194
KMoraz Avatar answered Nov 15 '22 01:11

KMoraz