<?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>Setting Up StyleCop MSBuild Integration</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx</link><description>This article explains how to integrate the StyleCop tool into an MSBuild based build environment, for StyleCop 4.3 and above. If you are using SourceAnalysis 4.2, please see the following article: http://blogs.msdn.com/sourceanalysis/pages/stylecop-4-2-msbuild-integration.aspx</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Source Analysis Build Integration</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8547905</link><pubDate>Sat, 24 May 2008 19:29:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8547905</guid><dc:creator>Microsoft Source Analysis for C#</dc:creator><description>&lt;p&gt;The following article describes how to integrate Source Analysis into the build, so that the tool will&lt;/p&gt;
</description></item><item><title>Microsoft Source Analysis for C#</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8549368</link><pubDate>Sun, 25 May 2008 00:46:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8549368</guid><dc:creator>&lt;T&gt;homas' Blog</dc:creator><description>&lt;p&gt;&amp;amp;quot;Source Analysis, also known as StyleCop, analyzes C# source code to enforce a set of best practice&lt;/p&gt;
</description></item><item><title>Stylecop has been released</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8549376</link><pubDate>Sun, 25 May 2008 00:48:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8549376</guid><dc:creator>I know the answer (it's 42)</dc:creator><description>&lt;p&gt;Microsoft released the internal tool StyleCop to public under the fancy yet boring name of Microsoft&lt;/p&gt;
</description></item><item><title>Interesting Finds: 2008.05.25</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8550395</link><pubDate>Sun, 25 May 2008 05:06:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8550395</guid><dc:creator>gOODiDEA.NET</dc:creator><description>&lt;p&gt;Web Fantastic, Free Calendar and Datepicker Scripts .NET Evaluation Engine - a parser and interpreter&lt;/p&gt;
</description></item><item><title>Microsoft Source Analysis for C# 4.2 was published</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8550672</link><pubDate>Sun, 25 May 2008 09:39:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8550672</guid><dc:creator>Juan Pablo Garcia</dc:creator><description>&lt;p&gt;Microsoft has published a great tool called Microsoft Source Analysis for C# , also known as StyleCop&lt;/p&gt;
</description></item><item><title>Analysis Rules</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8550832</link><pubDate>Sun, 25 May 2008 12:25:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8550832</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;Great! On my blog (wojciech.zimirski.net) you can find list of all rules currently embedded in the Microsoft Source Analysis for C#.&lt;/p&gt;</description></item><item><title>Microsoft Source Analysis for C# (aka StyleCop), un camarade pour FxCop</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8551107</link><pubDate>Sun, 25 May 2008 19:11:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8551107</guid><dc:creator>CoqBlog</dc:creator><description>&lt;p&gt;Un nouvel outil est disponible pour les d&amp;#233;veloppeurs C#. Comme son nom l'indique il s'agit d'un analyseur&lt;/p&gt;
</description></item><item><title>TFS Task</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8552186</link><pubDate>Mon, 26 May 2008 13:24:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8552186</guid><dc:creator>FreeToDev</dc:creator><description>&lt;p&gt;I've written a task to perform analysis on custom file collections which makes it easy to integrate with TFS builds. &lt;a rel="nofollow" target="_new" href="http://freetodev.spaces.live.com/blog/cns"&gt;http://freetodev.spaces.live.com/blog/cns&lt;/a&gt;!EC3C8F2028D842D5!400.entry&lt;/p&gt;</description></item><item><title>NAnt??</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8552215</link><pubDate>Mon, 26 May 2008 14:01:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8552215</guid><dc:creator>Sebastian Jancke</dc:creator><description>&lt;p&gt;I like this tool! Are there plans for NAnt tasks? As i use NAnt for hand-written build-files, this would be really nice. If there is no support planned, I would think of building a custom task for NAnt myself - however work should not be done multiple times...&lt;/p&gt;</description></item><item><title>TFS Task</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8552379</link><pubDate>Mon, 26 May 2008 16:16:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8552379</guid><dc:creator>FreeToDev</dc:creator><description>&lt;p&gt;I've written a task to scan csutom collections. Handy for TFS builds... &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://freetodev.spaces.live.com/blog/cns"&gt;http://freetodev.spaces.live.com/blog/cns&lt;/a&gt;!EC3C8F2028D842D5!400.entry&lt;/p&gt;</description></item><item><title>re: Setting Up Source Analysis MSBuild Integration</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8552798</link><pubDate>Mon, 26 May 2008 18:16:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8552798</guid><dc:creator>redsolo</dc:creator><description>&lt;P&gt;Is it possible to output the result to an XML file similar to FxCop? If not, are you planning to add such feature?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;EM&gt;[Note from jasonall - An XML file is automatically produced when running through MSBuild integration]&lt;/EM&gt;&lt;/P&gt;</description></item><item><title>re: Setting Up Source Analysis MSBuild Integration</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8553306</link><pubDate>Mon, 26 May 2008 22:58:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8553306</guid><dc:creator>redsolo</dc:creator><description>&lt;p&gt;Ah, great!&lt;/p&gt;
&lt;p&gt;It would also be nice if the XML file could have a &amp;lt;rules&amp;gt; tag that contains all rules that are mentioned in the XML report (Similar to FxCop). Im particular looking for a URL and a longer descrption. Or is there any other way to find out a URL from the RuleId?&lt;/p&gt;</description></item><item><title>【Code Gallery】Microsoft Source Analysis for C#</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8553893</link><pubDate>Tue, 27 May 2008 05:42:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8553893</guid><dc:creator>長沢智治のライフサイクルブログ</dc:creator><description>&lt;p&gt;こんにちは。手みじかですが、Microsoft Spurce Analysis for C# v4.2 が MSDN Code Gallery に公開されました。 バージョン番号を見ていただければ、わかるとおり、4.2&lt;/p&gt;
</description></item><item><title>Microsoft Source Analysis for C#</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8554273</link><pubDate>Tue, 27 May 2008 11:08:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8554273</guid><dc:creator>Maor David</dc:creator><description>&lt;p&gt;Microsoft announce the public release of a new developer tool -&amp;amp;#160; Source Analysis for C# . Inside&lt;/p&gt;
</description></item><item><title>re: Setting Up Source Analysis MSBuild Integration</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8554368</link><pubDate>Tue, 27 May 2008 12:23:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8554368</guid><dc:creator>Guillaume</dc:creator><description>&lt;p&gt;Are you plannig to add a command line tool (as FxCop) to integrate this tool in any other build system?&lt;/p&gt;</description></item><item><title>re: Setting Up Source Analysis MSBuild Integration</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8562292</link><pubDate>Fri, 30 May 2008 11:23:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8562292</guid><dc:creator>Greg</dc:creator><description>&lt;p&gt;How do you get &amp;nbsp;ExcludeFromSourceAnalysis to work? &amp;nbsp;I've tried&lt;/p&gt;
&lt;p&gt;&amp;lt;Compile Include=&amp;quot;Properties\AssemblyInfo.cs&amp;quot; ExcludeFromSourceAnalysis=&amp;quot;true&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;but that doesn't work (the project won't load).&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;</description></item><item><title>Integration with MSBuild</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8575185</link><pubDate>Thu, 05 Jun 2008 15:56:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8575185</guid><dc:creator>David</dc:creator><description>&lt;p&gt;I tried to integrate SourceAnalysis with MSBuild, that worked well as long as I added&lt;/p&gt;
&lt;p&gt;&amp;lt;Import Project=&amp;quot;$(SourceAnalysisTargets)&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;to each projects msbuild file (.proj):&lt;/p&gt;
&lt;p&gt;It wrote a &amp;quot;SourceAnalysis.Cache&amp;quot; file.&lt;/p&gt;
&lt;p&gt;Now I wanted to add this import line to the proj-file I wrote for the solution. No errors when I run MSBuild, but also no XML-Output. Any idea what can be wrong?&lt;/p&gt;</description></item><item><title>Problems with Integration</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8575246</link><pubDate>Thu, 05 Jun 2008 16:29:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8575246</guid><dc:creator>David</dc:creator><description>&lt;p&gt;I tried to integrate SourceAnalysis with MSBuild, that worked well as long as I added&lt;/p&gt;
&lt;p&gt;&amp;lt;Import Project=&amp;quot;$(SourceAnalysisTargets)&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;to each projects msbuild file (.proj):&lt;/p&gt;
&lt;p&gt;It wrote a &amp;quot;SourceAnalysis.Cache&amp;quot; file. (don't know if that is the right file?!)&lt;/p&gt;
&lt;p&gt;Now I wanted to add this import line to the proj-file I wrote for the solution. No errors when I run MSBuild, but also no XML-Output. Any idea what could be wrong?&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;</description></item><item><title>re: Setting Up Source Analysis MSBuild Integration</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8591396</link><pubDate>Wed, 11 Jun 2008 17:20:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8591396</guid><dc:creator>Graeme Wells</dc:creator><description>&lt;p&gt;Try :&lt;/p&gt;
&lt;p&gt;&amp;lt;Compile Include=&amp;quot;Properties\AssemblyInfo.cs&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;ExcludeFromSourceAnalysis&amp;gt;true&amp;lt;ExcludeFromSourceAnalysis/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Compile/&amp;gt;&lt;/p&gt;
&lt;p&gt;It seems to work for me&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Graeme&lt;/p&gt;</description></item><item><title>Breaking the EULA</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8593498</link><pubDate>Thu, 12 Jun 2008 21:40:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8593498</guid><dc:creator>Martin</dc:creator><description>&lt;p&gt;When reading the EULA it's clear that you aren't allowed to, quote: &amp;quot;publish the software for others to copy&amp;quot;. As I see it putting the binaries into a repository directly violates this. &lt;/p&gt;
&lt;p&gt;Can you elaborate on why this is not violating the EULA and does this exception apply to any product containing this limitation in the EULA?&lt;/p&gt;</description></item><item><title>re: Setting Up StyleCop MSBuild Integration</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8621489</link><pubDate>Thu, 19 Jun 2008 15:35:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8621489</guid><dc:creator>Chaitanya</dc:creator><description>&lt;p&gt;I want to run this StyleCop using nant script. Can anybody know how to run stylecop on code base using Nant script? Is there any command line version of StyleCop available? &amp;nbsp;&lt;/p&gt;</description></item><item><title>Microsoft Source Analysis for C# + ReSharper = Real-time Source Analysis</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8647948</link><pubDate>Tue, 24 Jun 2008 20:03:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8647948</guid><dc:creator>Howard van Rooijen's Blog</dc:creator><description>&lt;p&gt;I've worked on a couple of projects for Microsoft UK - one of the many great aspects of those projects&lt;/p&gt;
</description></item><item><title>NAnt support</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8671455</link><pubDate>Mon, 30 Jun 2008 17:04:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8671455</guid><dc:creator>John K</dc:creator><description>&lt;p&gt;Great tool! &amp;nbsp;Any support for NAnt anytime soon?&lt;/p&gt;</description></item><item><title>Nant</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8731749</link><pubDate>Mon, 14 Jul 2008 20:02:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8731749</guid><dc:creator>João Carlos Clementoni</dc:creator><description>&lt;p&gt;Hi. How we can run this tool with Nant?&lt;/p&gt;</description></item><item><title>Linq to SQL Breaks Rules</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8853556</link><pubDate>Tue, 12 Aug 2008 23:54:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8853556</guid><dc:creator>Amir Simantov</dc:creator><description>&lt;p&gt;As if Linq to SQL team members did not use StyleCop?...&lt;/p&gt;
&lt;p&gt;A single System.Data.Linq.DataContext derivative class, which is generated automatically when dragging items from Database/Server Explorer, break this rules (the number of breaking the rules are given in parentheses):&lt;/p&gt;
&lt;p&gt;1. SA1601: The partial class element must have a documentation header containing either a summary tag or a content tag.&lt;/p&gt;
&lt;p&gt;(Once).&lt;/p&gt;
&lt;p&gt;2. SA1600: The field/method/constructor must have a documentation header.&lt;/p&gt;
&lt;p&gt;(6 times)&lt;/p&gt;
&lt;p&gt;3. SA1633: The file has no header, the header Xml is invalid, or the header is not located at the top of the file.&lt;/p&gt;
&lt;p&gt;(Once)&lt;/p&gt;
&lt;p&gt;4. SA1512: A single-line comment must not be followed by a blank line. To ignore this error when commenting out a line of code, begin the comment with '////' rather than '//'.&lt;/p&gt;
&lt;p&gt;5. SA1507: The code must not contain multiple blank lines in a row.&lt;/p&gt;
&lt;p&gt;(Once)&lt;/p&gt;
&lt;p&gt;6. SA1505: An opening curly bracket must not be followed by a blank line.&lt;/p&gt;
&lt;p&gt;(Once)&lt;/p&gt;
&lt;p&gt;7. SA1400: The method must have an access modifier.&lt;/p&gt;
&lt;p&gt;(Once)&lt;/p&gt;
&lt;p&gt;8. SA1201: All methods must be placed after all constructors.&lt;/p&gt;
&lt;p&gt;(4 times)&lt;/p&gt;
&lt;p&gt;9. SA1101: The call to OnCreated must begin with the 'this.' prefix to indicate that the item is a member of the class.&lt;/p&gt;
&lt;p&gt;(4 times)&lt;/p&gt;
&lt;p&gt;10. The famous/notorious SA1027: Tabs are not allowed. Use spaces instead.&lt;/p&gt;
&lt;p&gt;(41 time) and in words: forty-one.&lt;/p&gt;
&lt;p&gt;Mind you, the file has only 60 lines of code :-)&lt;/p&gt;
&lt;p&gt;Amir simantov&lt;/p&gt;
&lt;p&gt;Dot, Net &amp;amp; Beyond&lt;/p&gt;</description></item><item><title>re: Setting Up StyleCop MSBuild Integration</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8887255</link><pubDate>Fri, 22 Aug 2008 12:28:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8887255</guid><dc:creator>Bart</dc:creator><description>&lt;p&gt;Is it possible to integrate it with a Visual C# Express edition 2005?&lt;/p&gt;</description></item><item><title>re: Setting Up StyleCop MSBuild Integration</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8887336</link><pubDate>Fri, 22 Aug 2008 13:15:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8887336</guid><dc:creator>jasonall</dc:creator><description>&lt;p&gt;@Bart:&lt;/p&gt;
&lt;p&gt;We have not tested running StyleCop in Visual C# Express edition 2005 through MSBuild integration. I think it will _probably_ work, however, if you edit the .csproj file and add the StyleCop import tag as explained in this article. &lt;/p&gt;
</description></item><item><title>Yes, Integrates With C# Express Edition</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8909473</link><pubDate>Sat, 30 Aug 2008 15:03:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8909473</guid><dc:creator>Amir Simantov</dc:creator><description>&lt;p&gt;I have tested it and it works just fine.&lt;/p&gt;
&lt;p&gt;Amir&lt;/p&gt;</description></item><item><title>Import Tags</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#8952244</link><pubDate>Mon, 15 Sep 2008 12:01:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8952244</guid><dc:creator>Martin</dc:creator><description>&lt;p&gt;Hi @ all!&lt;/p&gt;
&lt;p&gt;my question about MSBuild integration is following. Is there a difference between using VS2005 and VS2008?&lt;/p&gt;
&lt;p&gt;When i look at the *.csproj-file and would like to edit it, i find following tag:&lt;/p&gt;
&lt;p&gt;&amp;lt;Import Project=&amp;quot;$(MSBuildToolsPath)\Microsoft.CSharp.targets&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;Might replacing this tag with ...&lt;/p&gt;
&lt;p&gt;&amp;lt;Import Project=&amp;quot;$(MSBuildBinPath)\Microsoft.CSharp.targets&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;and adding ...&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;Import Project=&amp;quot;$(ProgramFiles)\MSBuild\Microsoft\StyleCop\v4.3\Microsoft.StyleCop.targets&amp;quot; /&amp;gt; &lt;/p&gt;
&lt;p&gt;lead to any troubles in future?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;</description></item><item><title>Introducing StyleCop on Legacy Projects</title><link>http://blogs.msdn.com/sourceanalysis/pages/source-analysis-msbuild-integration.aspx#9060141</link><pubDate>Tue, 11 Nov 2008 15:49:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9060141</guid><dc:creator>Microsoft StyleCop</dc:creator><description>&lt;p&gt;A number of people have asked for tips on rolling out StyleCop on a large, pre-existing codebase. This&lt;/p&gt;
</description></item></channel></rss>