Enabling Code Analysis for Web Projects

Code Analysis is a standard feature of the Developer edition of Visual Studio Team System. It's easy to enable; just visit the Code Analysis tab on the project properties page.

However, web projects aren't like other types of projects. To enable Code Analysis for Web Projects, you have to use the Website menu.

Bear in mind that the Website menu is only available when the Web project is selected in Solution Explorer.

From the Code Analysis Configuration page, we can switch on the various rules:

I know this seems trivial, but I've struggled with it multiple times. It's difficult to remember where the Code Analysis options are for web projects-- they're in a completely different place!

posted on Friday, August 11, 2006 10:07 AM by jatwood

Comments

# Web Application Projects in Team System

While investigating a problem we were having internally with web application solutions in Visual Studio...
Tuesday, August 22, 2006 4:12 PM by Team System

# re: Enabling Code Analysis for Web Projects

If you make a change in Code Analysis Configuration, and click OK button, where does the info get saved to?
Thursday, September 14, 2006 12:07 PM by wenjun