<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code Analysis Team Blog : Team Build</title><link>http://blogs.msdn.com/fxcop/archive/tags/Team+Build/default.aspx</link><description>Tags: Team Build</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>$(CodeAnalysisTreatWarningsAsErrors) MSBuild property</title><link>http://blogs.msdn.com/fxcop/archive/2007/08/08/_24002800_CodeAnalysisTreatWarningAsErrors_2900_-MSBuild-property.aspx</link><pubDate>Wed, 08 Aug 2007 10:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4120492</guid><dc:creator>David M. Kean</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/fxcop/comments/4120492.aspx</comments><wfw:commentRss>http://blogs.msdn.com/fxcop/commentrss.aspx?PostID=4120492</wfw:commentRss><wfw:comment>http://blogs.msdn.com/fxcop/rsscomments.aspx?PostID=4120492</wfw:comment><description>&lt;P&gt;For Visual Studio 2008, we have&amp;nbsp;added a new&amp;nbsp;MSBuild property that allows you to&amp;nbsp;easily treat all Code Analysis warnings as build errors. This can be useful for example, if you want&amp;nbsp;to force that any firing of a Code Analysis rule to break the build during a nightly Team Build without needing to individually&amp;nbsp;set this for every rule.&lt;/P&gt;
&lt;P&gt;To use,&amp;nbsp;simply add the &lt;STRONG&gt;&amp;lt;CodeAnalysisTreatWarningsAsErrors&amp;gt;&lt;/STRONG&gt; property to your project file (&lt;A href="http://blogs.msdn.com/fxcop/archive/2006/11/16/faq-how-do-i-share-managed-code-analysis-rule-settings-over-multiple-projects-david-kean.aspx" mce_href="http://blogs.msdn.com/fxcop/archive/2006/11/16/faq-how-do-i-share-managed-code-analysis-rule-settings-over-multiple-projects-david-kean.aspx"&gt;or a common targets file&lt;/A&gt;) and set it to &lt;STRONG&gt;true&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&lt;IMG style="WIDTH: 905px; HEIGHT: 508px" title="CodeAnalysisTreatWarningsAsErrors MSBuild property" alt="CodeAnalysisTreatWarningsAsErrors MSBuild property" src="http://blogs.msdn.com/photos/fxcop/images/4120483/original.aspx" width=905 height=508 mce_src="http://blogs.msdn.com/photos/fxcop/images/4120483/original.aspx"&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;Now, in the next run of Code Analysis, all rules will be displayed as errors:&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;IMG style="WIDTH: 915px; HEIGHT: 261px" title="Error List with Code Analysis errors" alt="Error List with Code Analysis errors" src="http://blogs.msdn.com/photos/fxcop/images/4120543/original.aspx" width=915 height=261 mce_src="http://blogs.msdn.com/photos/fxcop/images/4120543/original.aspx"&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4120492" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/fxcop/archive/tags/Team+System/default.aspx">Team System</category><category domain="http://blogs.msdn.com/fxcop/archive/tags/Visual+Studio+2008/default.aspx">Visual Studio 2008</category><category domain="http://blogs.msdn.com/fxcop/archive/tags/Code+Analysis/default.aspx">Code Analysis</category><category domain="http://blogs.msdn.com/fxcop/archive/tags/Configuration/default.aspx">Configuration</category><category domain="http://blogs.msdn.com/fxcop/archive/tags/Team+Build/default.aspx">Team Build</category></item></channel></rss>