<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://bloggingabout.net/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>Search results matching tag 'Code Analysis'</title><link>http://bloggingabout.net/search/SearchResults.aspx?a=1&amp;o=DateDescending&amp;tag=Code+Analysis&amp;orTags=0</link><description>Search results matching tag 'Code Analysis'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>StyleCop for ReSharper: The power of ReSharper 4.5 and StyleCop combined</title><link>http://bloggingabout.net/blogs/harold/archive/2009/03/28/stylecop-for-resharper-the-power-of-resharper-4-5-and-stylecop-combined.aspx</link><pubDate>Sat, 28 Mar 2009 13:48:48 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:481434</guid><dc:creator>hvdkamp</dc:creator><description>&lt;p&gt;Since yesterday it’s possible to use ReSharper 4.5 beta in combination with StyleCop by using StyleCop for ReSharper. This post gives you some information on all the three tools that I use to write source code in Visual Studio 2008 for business solutions faster and deliver better maintainable source code.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h1&gt;ReSharper 4.5&lt;/h1&gt;  &lt;p&gt;ReSharper is a productivity tool for Visual Studio. It provides solution-wide error highlighting on the fly, advanced code completion, superior unit testing tools, over 30 advanced code refactorings, multiple handy navigation and search utilities, single-click code formatting and cleanup, automatic code generation and templates, and a lot more productivity features for C#, VB.NET, ASP.NET, XML, and XAML. ReSharper fully integrates with Visual Studio to intelligently and powerfully extend the functionality that is native to Visual Studio. See also the complete &lt;a href="http://www.jetbrains.com/resharper/features/index.html" target="_blank"&gt;ReSharper feature list&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;ReShareper 4.5 is currently under development and available as a beta version. The biggest improvement is the performance improvement. The following picture illustrated the performance improvements, according to the ReSharper website:&lt;/p&gt;  &lt;p&gt;&lt;img style="border-right-width:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;" title="Resharper 4.5 speedometer" border="0" alt="Resharper 4.5 speedometer" src="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/harold/Resharper4.5speedometer_5F00_4634836D.jpg" width="464" height="157" /&gt; &lt;/p&gt;  &lt;p&gt;Download &lt;a href="http://www.jetbrains.com/resharper/beta.html" target="_blank"&gt;ReSharper 4.5 beta&lt;/a&gt; from jetbrains.com.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h1&gt;Microsoft StyleCop&lt;/h1&gt;  &lt;p&gt;Microsoft StyleCop analyzes C# source code to enforce a set of style and consistency rules. It can be run from inside of Visual Studio or integrated into an MSBuild project    &lt;br /&gt;For more information about Microsoft StyleCop see the StyleCop blog at &lt;a href="http://blogs.msdn.com/sourceanalysis"&gt;http://blogs.msdn.com/sourceanalysis&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Download &lt;a href="http://code.msdn.microsoft.com/sourceanalysis/Release/ProjectReleases.aspx" target="_blank"&gt;StyleCop&lt;/a&gt; from the MSDN Code Gallery StyleCop website.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h1&gt;StyleCop for ReSharper&lt;/h1&gt;  &lt;p&gt;StyleCop combines the power of ReSharper and StyleCop. It is a ReSharper plug-in that allows Microsoft StyleCop to be run as you type, generating real-time syntax highlighting of violations and automatic fixing of StyleCop issues during ReSharper Code CleanUp (silent mode):&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/harold/StyleCop_5F00_Violation_5F00_Spacing_5F00_Around_5F00_2E01EF64.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="StyleCop Violation Spacing Around" border="0" alt="StyleCop Violation Spacing Around" src="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/harold/StyleCop_5F00_Violation_5F00_Spacing_5F00_Around_5F00_thumb_5F00_1184FD84.png" width="599" height="58" /&gt;&lt;/a&gt;     &lt;br /&gt;StyleCop for ReSharper also contains a collection of &lt;a href="http://www.jetbrains.com/resharper/features/code_analysis.html#Quick-Fixes"&gt;Quick-Fixes&lt;/a&gt;:&amp;#160; &lt;br /&gt;&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/harold/StyleCop_5F00_Violation_5F00_Constructor_5F00_Must_5F00_70FDBDD1.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="StyleCop Violation Constructor Must" border="0" alt="StyleCop Violation Constructor Must" src="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/harold/StyleCop_5F00_Violation_5F00_Constructor_5F00_Must_5F00_thumb_5F00_4CA8B382.png" width="665" height="189" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/harold/ReSharper_5F00_QuickFix_5F00_Add_5F00_Copyright_5F00_049A8199.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ReSharper QuickFix Add Copyright" border="0" alt="ReSharper QuickFix Add Copyright" src="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/harold/ReSharper_5F00_QuickFix_5F00_Add_5F00_Copyright_5F00_thumb_5F00_5A6AD3B0.png" width="680" height="93" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/harold/ReSharper_5F00_QuickFix_5F00_Move_5F00_Usings_5F00_7868E1A4.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="ReSharper QuickFix Move Usings" border="0" alt="ReSharper QuickFix Move Usings" src="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/harold/ReSharper_5F00_QuickFix_5F00_Move_5F00_Usings_5F00_thumb_5F00_4E3933BC.png" width="750" height="156" /&gt;&lt;/a&gt;     &lt;br /&gt;     &lt;br /&gt;and &lt;a href="http://www.jetbrains.com/resharper/features/code_formatting.html"&gt;Code Clean-Up Modules&lt;/a&gt; to help you easily &lt;a href="http://stylecopforresharper.codeplex.com/Wiki/View.aspx?title=Fixes&amp;amp;referringTitle=Home"&gt;fix StyleCop code styling violations&lt;/a&gt;:&amp;#160; &lt;br /&gt;&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/harold/SCfR_5F00_CodeCleanUp_5F00_1E2EE23B.png"&gt;&lt;img style="border-bottom:0px;border-left:0px;display:inline;border-top:0px;border-right:0px;" title="Code CleanUp" border="0" alt="Code CleanUp" src="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/harold/SCfR_5F00_CodeCleanUp_5F00_thumb_5F00_190C58F2.png" width="634" height="779" /&gt;&lt;/a&gt;     &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Download &lt;a href="http://stylecopforresharper.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=25372" target="_blank"&gt;StyleCop 1.5 for ReSharper 4.5 beta&lt;/a&gt; from the CodePlex website.&lt;/p&gt;</description></item><item><title>Code analysis rules over projects</title><link>http://bloggingabout.net/blogs/mark/archive/2007/07/31/code-analysis-rules-over-projects.aspx</link><pubDate>Tue, 31 Jul 2007 07:18:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:327527</guid><dc:creator>Mark Henneman</dc:creator><description>
&lt;p&gt;&amp;nbsp;To perform code analysis it is pretty sure that you want to disable some rules. But how to share those over multiple projects in a solution.&lt;/p&gt;
&lt;p&gt;Or you want to make it a standard over solutions.&amp;nbsp; Well &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#comments"&gt;this post&lt;/a&gt; helps. And I copy/past the post. :-)&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If your team has a minbar of Managed Code Analysis rules that must be
explicitly fixed or suppressed, it is possible to share the&amp;nbsp;Managed
Code Analysis rule settings&amp;nbsp;over multiple MSBuild projects (.csproj,
.vbproj).
&lt;/p&gt;
&lt;p&gt;To share the minbar between multiple projects, do the following:&lt;/p&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;Using Visual Studio, create a new empty project&lt;/li&gt;
&lt;li&gt;In &lt;strong&gt;Solution Explorer&lt;/strong&gt;, right-click the project and choose &lt;strong&gt;Properties&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;Project Properties &lt;/strong&gt;window, choose the &lt;strong&gt;Code Analysis&lt;/strong&gt; tab&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;Code Analysis&lt;/strong&gt; tab,&amp;nbsp;choose the rules you want for your minbar&lt;/li&gt;
&lt;li&gt;In &lt;strong&gt;Solution Explorer&lt;/strong&gt;, right-click the project and choose &lt;strong&gt;Unload Project&lt;/strong&gt;, answering &lt;strong&gt;Yes&lt;/strong&gt; to any prompt to save changes&lt;/li&gt;
&lt;li&gt;In &lt;strong&gt;Solution Explorer&lt;/strong&gt;, right-click the project and choose &lt;strong&gt;Edit&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Search for the &lt;strong&gt;&amp;lt;CodeAnalysisRules&amp;gt;&lt;/strong&gt; element and copy the text within it&lt;/li&gt;
&lt;li&gt;Create an empty text file called &lt;em&gt;[team].CodeAnalysis.Rules.targets&lt;/em&gt;, replacing &lt;em&gt;[team]&lt;/em&gt; with the name of your team&lt;/li&gt;
&lt;li&gt;In the text file enter the following, replacing &lt;em&gt;[rulesettings]&lt;/em&gt; with the text copied above in Step 6:&lt;font face="Courier New"&gt;&lt;br /&gt;&lt;/font&gt;&lt;font face="Courier New"&gt;&lt;br /&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style="border:medium none;margin:auto;-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;border-collapse:collapse;" class="MsoNormalTable" cellpadding="0" cellspacing="0"&gt;

&lt;tr&gt;
&lt;td style="background-color:transparent;"&gt;
&lt;p style="margin:0in 0in 0pt;"&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:&amp;#39;Courier New&amp;#39;;"&gt;Project&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt; &lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:&amp;#39;Courier New&amp;#39;;"&gt;xmlns&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;http://schemas.microsoft.com/developer/msbuild/2003&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:&amp;#39;Courier New&amp;#39;;"&gt;PropertyGroup&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:&amp;#39;Courier New&amp;#39;;"&gt;CodeAnalysisRules&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:&amp;#39;Courier New&amp;#39;;"&gt;$(CodeAnalysisRules);&lt;em&gt;[rulesettings]&amp;lt;&lt;/em&gt;&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;/&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:&amp;#39;Courier New&amp;#39;;"&gt;CodeAnalysisRules&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;gt;&amp;nbsp; &lt;br /&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:&amp;#39;Courier New&amp;#39;;"&gt;PropertyGroup&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:&amp;#39;Courier New&amp;#39;;"&gt;Project&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;If you do not want developers to be able to turn on extra rules over and above the minbar, do not&amp;nbsp;add the &amp;#39;&lt;em&gt;$(CodeAnalysisRules);&lt;/em&gt;&amp;#39; text. &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;Using Visual Studio, open your projects&lt;/li&gt;
&lt;li&gt;In &lt;strong&gt;Solution Explorer&lt;/strong&gt;, right-click a project and choose &lt;strong&gt;Unload Project&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;In &lt;strong&gt;Solution Explorer&lt;/strong&gt;, right-click&amp;nbsp;the unloaded project and choose &lt;strong&gt;Edit&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Add the following &amp;lt;Import&amp;gt; element to the project, replacing &lt;em&gt;[path] &lt;/em&gt;with
the path of the targets file created above. This needs to be the last
line (just above the closing &amp;lt;/Project&amp;gt; element) to ensure that
settings within the project do not override the team settings:&lt;br /&gt;&lt;br /&gt;
&lt;table style="border:medium none;margin:auto;-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;border-collapse:collapse;" class="MsoNormalTable" cellpadding="0" cellspacing="0"&gt;

&lt;tr&gt;
&lt;td style="background-color:transparent;"&gt;
&lt;p style="margin:0in 0in 0pt;"&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:&amp;#39;Courier New&amp;#39;;"&gt;Project&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&lt;span style="font-size:8pt;color:red;font-family:&amp;#39;Courier New&amp;#39;;"&gt;DefaultTargets&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;=&amp;quot;&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;Build&amp;quot; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:&amp;#39;Courier New&amp;#39;;"&gt;xmlns&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;=&amp;quot;&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;http://schemas.microsoft.com/developer/msbuild/2003&amp;quot;&lt;/span&gt;&lt;span style="font-size:8pt;color:black;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin:0in 0in 0pt;"&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&lt;font color="#000000"&gt;[...]&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin:0in 0in 0pt;"&gt;&lt;strong&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style="font-size:8pt;color:maroon;font-family:&amp;#39;Courier New&amp;#39;;"&gt;Import&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt; &lt;/span&gt;&lt;span style="font-size:8pt;color:red;font-family:&amp;#39;Courier New&amp;#39;;"&gt;Project&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;=&lt;/span&gt;&lt;span style="font-size:8pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;quot;&lt;span style="color:blue;"&gt;&lt;em&gt;[path]&lt;/em&gt;&lt;/span&gt;&amp;quot;&lt;span style="color:blue;"&gt; /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;font color="#0000ff" size="2"&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="font-size:8pt;color:maroon;font-family:&amp;#39;Courier New&amp;#39;;"&gt;Project&lt;/span&gt;&lt;span style="font-size:8pt;color:blue;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Repeat from Step 11 for each project you want to share the rule settings with&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;p&gt;Any projects that imported the common rule settings via Step 9,
should now reflect these settings in the Code Analysis properties pane.
You can also share any&amp;nbsp;MSBuild properties using similar steps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Please Note:&lt;/strong&gt;&amp;nbsp;In order to avoid&amp;nbsp;Visual Studio prompting about unsafe imported MSBuild projects, you need to&amp;nbsp;explicitly trust the &lt;em&gt;[team].CodeAnalysis.Rules.targets&lt;/em&gt; file. To do this, use the following:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run regedit&lt;/li&gt;
&lt;li&gt;Navigate to &lt;strong&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\MSBuild\SafeImports&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Add a new string value called &lt;strong&gt;[team].CodeAnalysis.Rules.targets&lt;/strong&gt; and set its value to the full path of the targets file.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
</description></item></channel></rss>