<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dan Rigsby - Coding Up Style &#187; CruiseControl.Net</title>
	<atom:link href="http://www.danrigsby.com/blog/index.php/category/cruisecontrolnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danrigsby.com/blog</link>
	<description>Developer.Speaker.Blogger</description>
	<lastBuildDate>Tue, 17 Nov 2009 18:29:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CruiseControl.Net, MSBuild, and SourceMonitor</title>
		<link>http://www.danrigsby.com/blog/index.php/2006/08/18/cruisecontrolnet-msbuild-and-sourcemonitor/</link>
		<comments>http://www.danrigsby.com/blog/index.php/2006/08/18/cruisecontrolnet-msbuild-and-sourcemonitor/#comments</comments>
		<pubDate>Fri, 18 Aug 2006 12:25:00 +0000</pubDate>
		<dc:creator>Dan Rigsby</dc:creator>
				<category><![CDATA[CruiseControl.Net]]></category>
		<category><![CDATA[MSBuild]]></category>

		<guid isPermaLink="false">http://www.danrigsby.com/wordpress/?p=21</guid>
		<description><![CDATA[A while back I came across an excellent article from Robin Curry about integrating SourceMonitor into CruiseControl.Net using NAnt.  I wanted this for my team as well.  We use CruiseControl.Net, but have converted to the MSBuild camp.  So I started to look into what it would take to get SourceMonitor running with MSBuild.  I figured [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I came across an excellent <a href="http://www.robincurry.org/blog/CommentView,guid,5fa647f2-9100-4d82-b25d-dc500db96a97.aspx">article from Robin Curry</a> about integrating <a href="http://www.campwoodsw.com/sm20.html">SourceMonitor</a> into <a href="http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET">CruiseControl.Net</a> using NAnt.  I wanted this for my team as well.  We use CruiseControl.Net, but have converted to the <a href="http://msdn2.microsoft.com/en-us/library/wea2sca5.aspx">MSBuild</a> camp.  So I started to look into what it would take to get SourceMonitor running with MSBuild.  I figured it would be easy, but I was amazed at just how easy it was.</p>
<p><strong>The steps to integrate this are as follows:</strong></p>
<ol>
<li>Download <a href="http://www.campwoodsw.com/sm20.html">SourceMonitor</a> and add it to the path.</li>
<li>Write a project file for MSBuild.  (I have included a sample in this article that should work for everyone, or at least can be used as a template for modifications)</li>
<li>Add the file merge to the CruiseControl.Net ccnet.config file. (A sample is included in this article as well)</li>
</ol>
<p><strong>Here is the MSBuild file, we just called it SourceMonitor.csproj:</p>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">&lt;?</span><span style="color:#800000;">xml</span> <span style="color:#ff0000;">version</span><span style="color:#0000ff;">="1.0"</span> <span style="color:#ff0000;">encoding</span><span style="color:#0000ff;">="utf-8"</span>?<span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">&lt;</span><span style="color:#800000;">Project</span> <span style="color:#ff0000;">DefaultTargets</span><span style="color:#0000ff;">="Build"</span> <span style="color:#ff0000;">xmlns</span><span style="color:#0000ff;">="http://schemas.microsoft.com/developer/msbuild/2003"</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">    <span style="color:#008000;">&lt;!-- SourceMonitor Properties"/" --&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">    <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">PropertyGroup</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">SourceMonitorInput</span><span style="color:#0000ff;">&gt;</span>SourceMonitor.xml<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">SourceMonitorInput</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">SourceMonitorProject</span><span style="color:#0000ff;">&gt;</span>SourceMonitorProject.smp<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">SourceMonitorProject</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">SourceMonitorDir</span><span style="color:#0000ff;">&gt;</span>$(MSBuildProjectDirectory)\<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">SourceMonitorDir</span><span style="color:#0000ff;">&gt;</span> <span style="color:#008000;">&lt;!-- be sure to end directory with a "/" --&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">SourceMonitorSummary</span><span style="color:#0000ff;">&gt;</span>SourceMonitorSummary.xml<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">SourceMonitorSummary</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">SourceMonitorDetails</span><span style="color:#0000ff;">&gt;</span>SourceMonitorDetails.xml<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">SourceMonitorDetails</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">SourceMonitorCheckPointName</span><span style="color:#0000ff;">&gt;</span>BaseLine<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">SourceMonitorCheckPointName</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">SourceMonitorText</span><span style="color:#0000ff;">&gt;</span> <span style="color:#0000ff;">&lt;!</span>[CDATA[</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">&lt;?</span><span style="color:#800000;">xml</span> <span style="color:#ff0000;">version</span><span style="color:#0000ff;">="1.0"</span> <span style="color:#ff0000;">encoding</span><span style="color:#0000ff;">="UTF-8"</span> ?<span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">&lt;</span><span style="color:#800000;">sourcemonitor_commands</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">    <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">write_log</span><span style="color:#0000ff;">&gt;</span>true<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">write_log</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">    <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">command</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">project_file</span><span style="color:#0000ff;">&gt;</span>$(SourceMonitorProject)<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">project_file</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">project_language</span><span style="color:#0000ff;">&gt;</span>CSharp<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">project_language</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">source_directory</span><span style="color:#0000ff;">&gt;</span>$(SourceMonitorDir)<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">source_directory</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">include_subdirectories</span><span style="color:#0000ff;">&gt;</span>true<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">include_subdirectories</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">ignore_headers_footers</span><span style="color:#0000ff;">&gt;</span>true<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">ignore_headers_footers</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">checkpoint_name</span><span style="color:#0000ff;">&gt;</span>$(SourceMonitorCheckPointName)<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">checkpoint_name</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">export</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">            <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">export_file</span><span style="color:#0000ff;">&gt;</span>$(SourceMonitorSummary)<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">export_file</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">            <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">export_type</span><span style="color:#0000ff;">&gt;</span>1<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">export_type</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">export</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">    <span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">command</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">    <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">command</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">    <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">project_file</span><span style="color:#0000ff;">&gt;</span>$(SourceMonitorProject)<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">project_file</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">    <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">checkpoint_name</span><span style="color:#0000ff;">&gt;</span>$(SourceMonitorCheckPointName)<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">checkpoint_name</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">export</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">            <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">export_file</span><span style="color:#0000ff;">&gt;</span>$(SourceMonitorDetails)<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">export_file</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">            <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">export_type</span><span style="color:#0000ff;">&gt;</span>2<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">export_type</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">export</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">    <span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">command</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">sourcemonitor_commands</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">        ]]<span style="color:#0000ff;">&gt;&lt;/</span><span style="color:#800000;">SourceMonitorText</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">    <span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">PropertyGroup</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"> </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">    <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">Target</span> <span style="color:#ff0000;">Name</span><span style="color:#0000ff;">="Clean"</span>  <span style="color:#ff0000;">Condition</span><span style="color:#0000ff;">=" '$(BUILDMACHINE)' != '' "</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">Exec</span> <span style="color:#ff0000;">Command</span><span style="color:#0000ff;">="del $(SourceMonitorSummary)"</span> <span style="color:#0000ff;">/&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">Exec</span> <span style="color:#ff0000;">Command</span><span style="color:#0000ff;">="del $(SourceMonitorDetails)"</span> <span style="color:#0000ff;">/&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">    <span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">Target</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">    <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">Target</span> <span style="color:#ff0000;">Name</span><span style="color:#0000ff;">="Build"</span>  <span style="color:#ff0000;">Condition</span><span style="color:#0000ff;">=" '$(BUILDMACHINE)' != '' "</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">WriteLinesToFile</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">                <span style="color:#ff0000;">File</span><span style="color:#0000ff;">="$(SourceMonitorInput)"</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">                <span style="color:#ff0000;">Lines</span><span style="color:#0000ff;">="$(SourceMonitorText)"</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">                <span style="color:#ff0000;">Overwrite</span><span style="color:#0000ff;">="true"</span> <span style="color:#0000ff;">/&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">Exec</span> <span style="color:#ff0000;">Command</span><span style="color:#0000ff;">="sourcemonitor.exe /C $(SourceMonitorInput)"</span> <span style="color:#0000ff;">/&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">    <span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">Target</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">Project</span><span style="color:#0000ff;">&gt;</span></pre>
<p></strong></p>
<p><em>Note that the &lt;SourceMonitorDir&gt; tag is to contain the directory where the *.cs files can be found.  I currently have this set as the MSBuildProjectDirectory and have &lt;include_subdirectories&gt; set to true.  You may wish to modify this.</em></p>
<p><strong>And here is a sample of how to modify the ccnet.config file:</strong></p>
<p><strong></p>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">&lt;</span><span style="color:#800000;">tasks</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">    <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">msbuild</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">        … Insert your msbuild solution information here. The SourceMonior.csproj file should be included in this solution …</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">    <span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">msbuild</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">    <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">merge</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">files</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">            <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">file</span><span style="color:#0000ff;">&gt;</span>… Path …\SourceMonitorSummary.xml<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">file</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">            <span style="color:#0000ff;">&lt;</span><span style="color:#800000;">file</span><span style="color:#0000ff;">&gt;</span>… Path …\SourceMonitorDetails.xml<span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">file</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;">        <span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">files</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:#f4f4f4;border-style:none;margin:0;padding:0;">    <span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">merge</span><span style="color:#0000ff;">&gt;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:Consolas, 'Courier New', Courier, Monospace;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#0000ff;">&lt;/</span><span style="color:#800000;">tasks</span><span style="color:#0000ff;">&gt;</span></pre>
<p></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danrigsby.com/blog/index.php/2006/08/18/cruisecontrolnet-msbuild-and-sourcemonitor/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

