<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.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>My Visual Studio 2008 Code Analysis Rules</title><link>http://msmvps.com/blogs/peterritchie/archive/2007/09/04/my-visual-studio-2008-code-analysis-rules.aspx</link><description>Although a couple of suggestion for changes to existing rules seem to have made it into Visual Studio 2008 Beta 2, unfortunately, none of my suggestions for new Code Analysis rules made it into Orcas Beta 2 (and thus likely not in RTM). I was holding</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: My Visual Studio 2008 Code Analysis Rules</title><link>http://msmvps.com/blogs/peterritchie/archive/2007/09/04/my-visual-studio-2008-code-analysis-rules.aspx#1647377</link><pubDate>Wed, 10 Sep 2008 18:23:27 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647377</guid><dc:creator>PeterRitchie</dc:creator><description>&lt;p&gt;@Paulo &amp;nbsp;I&amp;#39;ve run the rules without problem in both the RTM version of 2008 (9.0.21022.8 RTM) and the SP1 version of 2008. &amp;nbsp;(9.0.30729.1 SP).&lt;/p&gt;
&lt;p&gt;If you&amp;#39;ve installed a Beta, I recommend uninstalling it before upgrading to a non-beta version. &amp;nbsp;Sometimes this means completely uninstalling all Visual Studio versions to get it to work proberly.&lt;/p&gt;
&lt;p&gt;Visual Studio betas are not kind to your machine.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647377" width="1" height="1"&gt;</description></item><item><title>re: My Visual Studio 2008 Code Analysis Rules</title><link>http://msmvps.com/blogs/peterritchie/archive/2007/09/04/my-visual-studio-2008-code-analysis-rules.aspx#1647183</link><pubDate>Mon, 08 Sep 2008 23:18:02 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647183</guid><dc:creator>Paulo</dc:creator><description>&lt;p&gt;Loading this in the a non-Beta 2008 (9.0.21022.8 RTM) gives me an error:&lt;/p&gt;
&lt;p&gt;Error	208	CA0053 : Unable to load rule assembly &amp;#39;C:\Program Files\Microsoft Visual Studio 9.0\Team Tools\Static Analysis Tools\FxCop\Rules\PRI.CodeAnalysis.Rules.Design.dll&amp;#39;: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.	&lt;/p&gt;
&lt;p&gt;Is this something in my configuration, or did something change from the Beta that broke these rules?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m chasing a debugger crash issue that I think may be related to a recursive property, so this rule of yours would be extremely helpful!&lt;/p&gt;
&lt;p&gt;For completeness, here&amp;#39;s what I have loaded:&lt;/p&gt;
&lt;p&gt;Microsoft Visual Studio 2008&lt;/p&gt;
&lt;p&gt;Version 9.0.21022.8 RTM&lt;/p&gt;
&lt;p&gt;Microsoft .NET Framework&lt;/p&gt;
&lt;p&gt;Version 3.5&lt;/p&gt;
&lt;p&gt;Installed Edition: Enterprise&lt;/p&gt;
&lt;p&gt;Microsoft Visual Basic 2008 &amp;nbsp; 91899-153-0000007-60707&lt;/p&gt;
&lt;p&gt;Microsoft Visual Basic 2008&lt;/p&gt;
&lt;p&gt;Microsoft Visual C# 2008 &amp;nbsp; 91899-153-0000007-60707&lt;/p&gt;
&lt;p&gt;Microsoft Visual C# 2008&lt;/p&gt;
&lt;p&gt;Microsoft Visual C++ 2008 &amp;nbsp; 91899-153-0000007-60707&lt;/p&gt;
&lt;p&gt;Microsoft Visual C++ 2008&lt;/p&gt;
&lt;p&gt;Microsoft Visual Studio 2008 Team Explorer &amp;nbsp; 91899-153-0000007-60707&lt;/p&gt;
&lt;p&gt;Microsoft Visual Studio 2008 Team Explorer&lt;/p&gt;
&lt;p&gt;Version 9.0.21022.8&lt;/p&gt;
&lt;p&gt;Microsoft Visual Studio 2008 Tools for Office &amp;nbsp; 91899-153-0000007-60707&lt;/p&gt;
&lt;p&gt;Microsoft Visual Studio 2008 Tools for Office&lt;/p&gt;
&lt;p&gt;Microsoft Visual Studio Team System 2008 Architecture Edition &amp;nbsp; 91899-153-0000007-60707&lt;/p&gt;
&lt;p&gt;Microsoft Visual Studio Team System 2008 Architecture Edition&lt;/p&gt;
&lt;p&gt;Microsoft Visual Studio Team System 2008 Database Edition &amp;nbsp; 91899-153-0000007-60707&lt;/p&gt;
&lt;p&gt;Microsoft Visual Studio Team System 2008 Database Edition&lt;/p&gt;
&lt;p&gt;Microsoft Visual Studio Team System 2008 Development Edition &amp;nbsp; 91899-153-0000007-60707&lt;/p&gt;
&lt;p&gt;Microsoft Visual Studio Team System 2008 Development Edition&lt;/p&gt;
&lt;p&gt;Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout &amp;amp; Hauspie Speech Products N.V. &amp;nbsp;All rights reserved.&lt;/p&gt;
&lt;p&gt;The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. &amp;nbsp;Electronic version licensed from Lernout &amp;amp; Hauspie Speech Products N.V. &amp;nbsp;All rights reserved.&lt;/p&gt;
&lt;p&gt;Microsoft Visual Studio Team System 2008 Test Edition &amp;nbsp; 91899-153-0000007-60707&lt;/p&gt;
&lt;p&gt;Microsoft Visual Studio Team System 2008 Test Edition&lt;/p&gt;
&lt;p&gt;Microsoft Visual Web Developer 2008 &amp;nbsp; 91899-153-0000007-60707&lt;/p&gt;
&lt;p&gt;Microsoft Visual Web Developer 2008&lt;/p&gt;
&lt;p&gt;Crystal Reports &amp;nbsp; &amp;nbsp;AAJ60-G0MSA4K-68000CF&lt;/p&gt;
&lt;p&gt;Crystal Reports Basic for Visual Studio 2008&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647183" width="1" height="1"&gt;</description></item><item><title>re: My Visual Studio 2008 Code Analysis Rules</title><link>http://msmvps.com/blogs/peterritchie/archive/2007/09/04/my-visual-studio-2008-code-analysis-rules.aspx#1226206</link><pubDate>Tue, 02 Oct 2007 20:26:29 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1226206</guid><dc:creator>Nel</dc:creator><description>&lt;p&gt;Peter, you rule. Everywhere I look about C#, I see your name :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1226206" width="1" height="1"&gt;</description></item><item><title>re: My Visual Studio 2008 Code Analysis Rules</title><link>http://msmvps.com/blogs/peterritchie/archive/2007/09/04/my-visual-studio-2008-code-analysis-rules.aspx#1170208</link><pubDate>Thu, 06 Sep 2007 05:19:16 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1170208</guid><dc:creator>David M. Kean</dc:creator><description>&lt;p&gt;Nice work!&lt;/p&gt;
&lt;p&gt;Have a look at RuleUtilities.GetInstancePointer to solve the DoNotRecursivelyReferenceProperty false positives. DoNotCallOverrideableInConstructors does a similar thing.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1170208" width="1" height="1"&gt;</description></item></channel></rss>