Fun with Code Analysis Rule Sets

Two weeks ago, I introduced you to Visual Studio 2010 September ’08 CTP (Community Technology Preview). This CTP is available as a Virtual PC (VPC) image which can be downloaded at The goal of the Community Technology Preview is to obtain feedback from our customers on the new scenarios we have enabled.  If you…


FxCop 1.36 Released!

We are pleased to announce that we’ve released the next version of FxCop. This release has a number of changes since FxCop 1.36 Beta 2, including, but not limited to, the following: Bug fixes that reduce noise, missing analysis and rule crashes. New portability rule: Use Only API from Targeted Framework.  This rule will fire when…


David Kean’s new blog

For those that are interested, I’ve just started a new personal blog, Dave’s Box, where I will be talking about FxCop, Framework Design Guidelines, and the recently announced Managed Extensibility Framework. I’ve just posted a couple of posts detailing changes we made to FxCop 1.36:  FxCop now ships with the spell checker librariesReference resolution changes in Code…


FxCop 1.35 now available (again) for download

We’ve just uploaded FxCop 1.35 to MSDN Code Gallery after we lost our home on GotDotNet – this is for those teams that either do not want to or just aren’t ready to upgrade to FxCop 1.36 Beta. For those that are already using FxCop 1.35, you’ll probably notice that we flicked the switch to…


FAQ: How do I prevent FxCop 1.36 from firing warnings against generated code?

I’ve upgraded from FxCop 1.35 to 1.36 and now FxCop has started to fire warnings against typed DataSets and other generated code. How do I turn this off? The reason this is occurring is because we changed the way that FxCop analyzed generated code. Whereas previously in 1.35, FxCop would only ignore particular generated code…


What happened to the download and documentation of FxCop 1.35?

Update: You can now download FxCop 1.35 directly from MSDN Code Gallery.  As you many you have well noticed, GotDotNet was officially retired last month now that the last of its functionality was superceded by MSDN Code Gallery. Unfortunately, at the same time, the FxCop team page, the download for FxCop 1.35 and the rule documentation was…


Tutorial on writing your own Code Analysis rule

Jason Kresowaty has posted a great tutorial on writing Code Analysis/FxCop rules. He also spends time on explaining parts of the Introspection API, including the different nodes and their relationship to each other. It’s a great read, even if you’ve written some Code Analysis rules before. Definitely recommended.


What do you want to see in the second edition of Framework Design Guidelines?

Krzysztof and Brad have announced they are working on the second edition of the awesome Framework Design Guidelines and are looking for feedback on what they should put in it. For those that don’t know, a lot of our Code Analysis rules are based on the writings in this great book, so expect to see…


FAQ: Which Code Analysis rules shipped in which version?

In response to a lot of recent requests, we’ve put together a complete list of rules that shipped in the different versions of Visual Studio Code Analysis and FxCop. Attached is an Excel worksheet providing this information for Visual Studio 2005, Visual Studio 2008, FxCop 1.35 and FxCop 1.36 Beta. One of things you’ll notice…