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!