Sign in
Code Analysis Team Blog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Tags
ASP.NET
Books
Bugs
C++
Code Analysis
Code Analysis Policy
Code Metrics
CodeCommunit Analysis
Community
Configuration
Custom Rules
Documentation
Dogfooding
Exceptions
FAQ
Framework Design Guidelines
FxCop
Pages
Releases
Rules
Suppressions
SuppressUnmanagedCode
Team Build
Team System
Tips and Tricks
Tools
tsbt-dev
Visual Studio 2005
Visual Studio 2008
y
Browse by Tags
MSDN Blogs
>
Code Analysis Team Blog
>
All Tags
>
configuration
Tagged Content List
Blog Post:
Code Metrics Customization
conorm
A number of people have asked: Is there a way to customize the existing code metrics or add additional ones? The simple answer at this time is No. There are no extension points or customizations available at this time for code metrics. This feature was added late in the cycle for VS 2008...
on
15 Nov 2007
Blog Post:
New for Visual Studio 2008 - Code Analysis Policy improvements
David M. Kean
One not very well known feature that lights up when connected to a Team Foundation Server, is the ability to enforce that Code Analysis be run before every check-in. Called a Code Analysis Policy , this feature allows your team to find and fix Code Analysis warnings earlier in the product cycle rather...
on
20 Sep 2007
Blog Post:
New for Visual Studio 2008 - Custom Dictionaries
David M. Kean
Once you turn on the new spelling rules that we've added to Visual Studio 2008, you will want to start to customize the words that it fires on; this is where the new custom dictionary support comes in. A custom dictionary in its basic form, similar to the concept in Microsoft Word, allows you to silence...
on
20 Aug 2007
Blog Post:
New for Visual Studio 2008 - Spelling rules
David M. Kean
Surprisingly, one the biggest requests for Code Analysis in Visual Studio 2005 was to include the spelling rules that shipped with the FxCop standalone. We had Microsoft consultants tell us that they actually had trouble moving some customers from FxCop to Code Analysis because they were not included...
on
12 Aug 2007
Blog Post:
$(CodeAnalysisTreatWarningsAsErrors) MSBuild property
David M. Kean
For Visual Studio 2008, we have added a new MSBuild property that allows you to easily treat all Code Analysis warnings as build errors. This can be useful for example, if you want to force that any firing of a Code Analysis rule to break the build during a nightly Team Build without needing to individually...
on
8 Aug 2007
Blog Post:
TIP: How to change the (Orcas) Managed Code Analysis naming/design rules to fire on internals
David M. Kean
A while ago I mentioned that FxCop (and hence Managed Code Analysis) naming and design rules only fire on publicly visible types and members. As you may recall, there were a couple of reason for this: The .NET Framework Design Guidelines , which FxCop/Managed Code Analysis enforces, only contains...
on
8 May 2007
Blog Post:
FAQ: How do I run FxCop during a post-build event?
David M. Kean
A little known feature of FxCop (in particular FxCopCmd.exe) is its ability to be integrated into the build process within Visual Studio. Although not a replacement for the Code Analysis functionality available within both Visual Studio Team Edition for Developers and Visual Studio Team Suite, it allows...
on
24 Feb 2007
Blog Post:
FAQ: What is the GlobalSuppressions.cs/GlobalSuppressions.vb file and why is it needed? Is it possible to change the name of this file? [David Kean]
David M. Kean
I've noticed that Code Analysis sometimes places suppressions in a file called GlobalSuppression.cs (GlobalSuppressions.vb in Visual Basic). Why this is file needed and it is possible to change its name? What is this file? When you right-click on a warning and choose Suppress Message(s) , Code...
on
28 Dec 2006
Blog Post:
FAQ: How do I share Managed Code Analysis rule settings over multiple projects? [David Kean]
David M. Kean
If your team has a minbar of Managed Code Analysis rules that must be explicitly fixed or suppressed, it is possible to share the Managed Code Analysis rule settings over multiple MSBuild projects (.csproj, .vbproj). To share the minbar between multiple projects, do the following: Using Visual...
on
16 Nov 2006
Blog Post:
TIP: How to quickly enable Code Analysis on multiple projects [David Kean]
David M. Kean
Daniel Fisher has posted a entry on using a macro to quickly enable Code Analysis on multiple projects . The macro also allows you to apply the same rule selections across an entire solution. Thanks Daniel!
on
11 Aug 2006
Blog Post:
TIP: How to change the FxCop naming/design rules to fire on internals [David Kean]
David M. Kean
By default, the FxCop naming and design rules only fire on publicly visible types and members. There are a couple reasons for this: The .NET Framework Design Guidelines , which FxCop enforces, only contains guidelines for publicly visible API. What internal Microsoft teams (and you) do with their...
on
8 Aug 2006
Blog Post:
FAQ: How do I indicate to DoNotDeclareReadOnlyMutableReferenceTypes that a type is immutable? [David Kean]
David M. Kean
DoNotDeclareReadOnlyMutableReferenceTypes is a rule that checks for visible read-only fields that are mutable reference types (classes). A mutable type is a type whose instance data can be changed once it has been constructed. For example, the following type is considered mutable: namespace Microsoft...
on
4 Apr 2006
Page 1 of 1 (12 items)