Welcome to MSDN Blogs Sign in | Join | Help

January 2007 - Posts

TIP: Scope the Code Analysis Policy to apply to specific source control paths/file types

On the forums, we have had posts from customers who want to customize their code analysis policy to skip certain file types such as .sql, docs etc. This is because the policy will block checkins even though code analysis doesn’t apply to those files.[

FAQ: When looking at the names of locals in a custom rule, why do I see strange names such as 'CS$1$0000' and 'VB$1$0000'?

Previously we showed you how to access the locals or variables of a method. Once you started to run your rule over an assembly, you might start to notice strange locals with names that start with 'CS$' and 'VB$'. These are compiler generated locals that

Free sample book chapter on Managed Code Analysis

SearchVB.com is offering a free sample chapter on Managed Code Analysis from the book Professional Visual Studio Team System (co-written by fellow Team System colleague Noah Coad ). Chapter 8, Managed Code Analysis, focuses on how to use Team System's

FAQ: What exception should I throw instead of the reserved exceptions that DoNotRaiseReservedExceptionTypes warns against?

Throwing a general exception type such as System.Exception or System.SystemException in a library or Framework forces consumers to catch all exceptions, including unknown exceptions that they do not know how to handle (see FAQ: Why does FxCop warn against

TIP: Automatically generate Managed Code Analysis/FxCop suppressions

I see a lot of users attempting to hand code a SuppressMessageAttribute themselves. This can be error prone and is not needed when both Visual Studio and the standalone FxCop can automatically generate these for you. In Visual Studio 2005 Right-click

FAQ: How do I fix a violation of MovePInvokesToNativeMethodsClass?

MovePInvokesToNativeMethodsClass fires on P/Invokes (ie methods marked with DllImport) that are not members of one of the following classes; NativeMethods, SafeNativeMethods or UnsafeNativeMethods. For example, the following sample fires this warning.

January Orcas CTP Released!

Update: A Virtual PC image is also available. We've just released the Visual Studio 'Orcas' - January CTP . This is the first of the side-by-side installable CTPs, however, before installing, please read the Release Notes and do not install this on a

Do yourself a favor; install Visual Studio SP1 now

While this may be old news to some, we've had a few reports recently of bugs that were already fixed in Visual Studio Service Pack 1 , so it appears that not everyone is running it. We fixed over 30+ bugs ourselves in Managed Code Analysis, so if you

And now back to your regularly scheduled FxCop documentation...

As a lot of you noticed, just before Christmas all of our rule documentation links broke from within FxCop. Unfortunately, due to the timing (and with the required people on holidays), we could not get this fixed as soon as we had hoped. However, as of
 
Page view tracker