<?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>Head.SmackOnTable(); &#187; cc.net</title>
	<atom:link href="http://www.unauthorised-access.com/tag/cc-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unauthorised-access.com</link>
	<description>Contains Nuts.</description>
	<lastBuildDate>Fri, 06 Jan 2012 11:15:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Creating a CI server using CC.Net Part 1</title>
		<link>http://www.unauthorised-access.com/2010/02/creating-a-ci-server-using-cc-net-part-1/</link>
		<comments>http://www.unauthorised-access.com/2010/02/creating-a-ci-server-using-cc-net-part-1/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 00:05:43 +0000</pubDate>
		<dc:creator>Monty</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[CycleMania]]></category>
		<category><![CDATA[c#.net]]></category>
		<category><![CDATA[cc.net]]></category>

		<guid isPermaLink="false">http://www.unauthorised-access.com/?p=386</guid>
		<description><![CDATA[For the CycleMania project, I previously used TeamCity, but I think it is more geared towards building static projects and running tests rather than deployment, so this time around im going to be using CruiseControl.NET Note &#8211; I am doing this and writing this at the same time To get started, you need to install [...]]]></description>
			<content:encoded><![CDATA[<p>For the CycleMania project, I previously used TeamCity, but I think it is more geared towards building static projects and running tests rather than deployment, so this time around im going to be using CruiseControl.NET</p>
<p><strong>Note &#8211; I am doing this and writing this at the same time <img src='http://www.unauthorised-access.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </strong></p>
<p>To get started, you need to install the following:</p>
<ul>
<li>Subversion for windows, command line, from Collab.NET</li>
<li>NAnt, I have version 0.85 installed, and put the path into the <em>PATH</em> environment variable, I am NOT using 0.86beta1 because of this error:</li>
</ul>
<pre class="brush: plain; title: ; notranslate">
NAnt 0.86 (Build 0.86.2898.0; beta1; 12/8/2007)
Copyright (C) 2001-2007 Gerry Shaw

http://nant.sourceforge.net

BUILD FAILED

Failed to initialize the 'Microsoft .NET Framework 2.0' (net-2.0) target framework.

 Property evaluation failed.
Expression: ${path::combine(sdkInstallRoot, 'bin')}
 ^^^^^^^^^^^^^^

 Property 'sdkInstallRoot' has not been set.

For more information regarding the cause of the build failure, run the build again in debug mode.

Try 'nant -help' for more information
</pre>
<p>Even though we do NOT need the .net 2.0 SDK! Very poor show indeed.</p>
<ul>
<li>CruiseControl.Net &#8211; you probably want to set the admin password to something else from the config file loctated in the <em>webdashboard</em> directory (inside where you installed cc.net), the file is <em>dashboard.config</em></li>
</ul>
<p>Once you have the above monkies installed, you want to do a checkout of the CycleMania source code to a directory, like so:</p>
<pre class="brush: plain; title: ; notranslate">

svn co https://cyclemania.svn.codeplex.com/svn/trunk E:\SVN\CycleMania
</pre>
<p>Replace the <em>E:\SVN\CycleMania</em> with wherever your subversion repository lives.</p>
<p>For sake of argument, I have my build scripts living in E:\SVN\CycleMania-BuildScript, and the file is called CycleMania.build</p>
<p>Once you have done that, go into the build script, and type in <em>nant</em>, and you should get the following:</p>
<pre class="brush: plain; title: ; notranslate">
E:\SVN\CycleMania-BuildScript&gt;nant -buildfile:CycleMania.build
NAnt 0.85 (Build 0.85.2478.0; release; 10/14/2006)
Copyright (C) 2001-2006 Gerry Shaw

http://nant.sourceforge.net

Buildfile: file:///E:/SVN/CycleMania-BuildScript/CycleMania.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: build

build:

 [echo] Building Target
 [exec] Starting 'c:\Windows\Microsoft.NET\Framework64\v4.0.30128\MSBuild.exe ( E:\SVN\CycleMania\CycleMania.sln)' in 'E:\SVN\CycleMania-BuildScript'
 [exec] Microsoft (R) Build Engine Version 4.0.30128.1
 [exec] [Microsoft .NET Framework, Version 4.0.30128.1]
 [exec] Copyright (C) Microsoft Corporation 2007. All rights reserved.
 [exec] Build started 2/23/2010 3:47:11 PM.
 [exec] Project &quot;E:\SVN\CycleMania\CycleMania.sln&quot; on node 1 (default targets).
 [exec] ValidateSolutionConfiguration:
 [exec]   Building solution configuration &quot;Debug|Mixed Platforms&quot;.
 [exec] Project &quot;E:\SVN\CycleMania\CycleMania.sln&quot; (1) is building &quot;E:\SVN\CycleMania\Cyclemania.Web\Cyclemania.Web.csproj&quot; (2) on node 1 (default targets).

 [exec] E:\SVN\CycleMania\Cyclemania.Web\Cyclemania.Web.csproj(649,3): error MSB4019: The imported project &quot;C:\Program Files (x86)\MSBuild\Microsoft\VisualS
tudio\v10.0\WebApplications\Microsoft.WebApplication.targets&quot; was not found. Confirm that the path in the &lt;Import&gt; declaration is correct, and that the file exi
sts on disk.
 [exec] Done Building Project &quot;E:\SVN\CycleMania\Cyclemania.Web\Cyclemania.Web.csproj&quot; (default targets) -- FAILED.
 [exec] Done Building Project &quot;E:\SVN\CycleMania\CycleMania.sln&quot; (default targets) -- FAILED.
 [exec] Build FAILED.
 [exec] &quot;E:\SVN\CycleMania\CycleMania.sln&quot; (default target) (1) -&gt;
 [exec] &quot;E:\SVN\CycleMania\Cyclemania.Web\Cyclemania.Web.csproj&quot; (default target) (2) -&gt;
 [exec]   E:\SVN\CycleMania\Cyclemania.Web\Cyclemania.Web.csproj(649,3): error MSB4019: The imported project &quot;C:\Program Files (x86)\MSBuild\Microsoft\Visua
lStudio\v10.0\WebApplications\Microsoft.WebApplication.targets&quot; was not found. Confirm that the path in the &lt;Import&gt; declaration is correct, and that the file exists on disk.
 [exec]     0 Warning(s)
 [exec]     1 Error(s)
 [exec] Time Elapsed 00:00:05.22

BUILD FAILED

E:\SVN\CycleMania-BuildScript\CycleMania.build(7,4):
External Program Failed: c:\Windows\Microsoft.NET\Framework64\v4.0.30128\MSBuild.exe (return code was 1)

Total time: 12.9 seconds.
</pre>
<p>HUH?!? What the hell happened there? Well in the infinate wisdom of Microsoft (which I have <a href="http://www.unauthorised-access.com/2008/07/ms-build-microsoftwebapplicationtargets-was-not-found/">blogged about before</a>), they did not decide to include the Microsoft.WebApplications.targets file anywhere to be found on the hdd, and you have to dig it out from the vs.net install, or you can find it from <a href="http://www.unauthorised-access.com/wp-content/uploads/2010/02/MSBuild.zip">this handly link</a>! Unzip this into your <em>Program Files</em> or <em>Program Files (x86)</em> if you are fancy and have a 64bit proc.</p>
<p>Once you have unzipped that lovely glorious file, and run the NAnt script again, you should see a better output, with LOADS of stuff hapenning, and hopefully at the end, these GLORIOUS WORDS:</p>
<pre class="brush: plain; title: ; notranslate">

BUILD SUCCEEDED

Total Time: 11.6 seconds
</pre>
<p>Note: Your time may vary.</p>
<p>In Part 2, I will describe how to set up your SQL 2008 instance up, user accounts (NOTE, I would do this properly as opposed to the hacky &#8220;lets get the site to work&#8221; way), and IIS&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unauthorised-access.com/2010/02/creating-a-ci-server-using-cc-net-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

