<?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>Rash thoughts about .NET, C#, F# and Dynamics NAV. &#187; F-sharp Make</title>
	<atom:link href="http://www.navision-blog.de/tag/f-sharp-make/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.navision-blog.de</link>
	<description>This Blog is about Microsoft Dynamics NAV (f.k.a Navision incl. C/SIDE and C/AL), C#, F# and .NET in general.</description>
	<lastBuildDate>Wed, 14 Jul 2010 11:12:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>&quot;Fake &#8211; F# Make&quot; 1.40.5.0 released &#8211; Bugfixes for CruiseControl.NET</title>
		<link>http://www.navision-blog.de/2010/07/14/fake-f-make-1-40-5-0-released-bugfixes-for-cruisecontrol-net/</link>
		<comments>http://www.navision-blog.de/2010/07/14/fake-f-make-1-40-5-0-released-bugfixes-for-cruisecontrol-net/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 09:15:05 +0000</pubDate>
		<dc:creator>Steffen Forkmann</dc:creator>
				<category><![CDATA[F#]]></category>
		<category><![CDATA[FAKE - F# Make]]></category>
		<category><![CDATA[docu]]></category>
		<category><![CDATA[F-sharp Make]]></category>
		<category><![CDATA[Fake]]></category>

		<guid isPermaLink="false">http://www.navision-blog.de/2010/07/14/fake-f-make-1-40-5-0-released-bugfixes-for-cruisecontrol-net/</guid>
		<description><![CDATA[Today I released “FAKE – F# Make” version 1.40.5.0. This release fixes some issues with CruiseControl.NET compatibility and improves the MSBuild task. Important links: Project page Download HTML Documentation Repository Changes for CruiseControl.NET Daniel Nauck created a FAKE task for CC.Net. This task allows a much easier configuration of FAKE. Please download the latest CC.NET [...]]]></description>
			<content:encoded><![CDATA[<p>Today I released “FAKE – F# Make” version 1.40.5.0. This release fixes some issues with <a href="http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET">CruiseControl.NET</a> compatibility and improves the MSBuild task.</p>
<p>Important links:</p>
<ul>
<li><a href="http://bitbucket.org/forki/fake/wiki/Home">Project page</a></li>
<li><a href="http://bitbucket.org/forki/fake/downloads">Download</a></li>
<li><a href="http://www.navision-blog.de/fake/">HTML Documentation</a></li>
<li><a href="http://github.com/forki/FAKE">Repository</a></li>
<li><script src="http://www.ohloh.net/p/483999/widgets/project_thin_badge.js" type="text/javascript"></script></li>
</ul>
<h5>Changes for CruiseControl.NET</h5>
<p><a href="http://twitter.com/dnauck">Daniel Nauck</a> created a <a href="http://confluence.public.thoughtworks.org/display/CCNET/FAKE+Task">FAKE task for CC.Net</a>. This task allows a much easier configuration of FAKE. Please download the <a href="http://ccnetlive.thoughtworks.com/CCNet-builds/1.6.0/">latest CC.NET build</a> if you want to use it.</p>
<p>Daniel also created a <a href="http://build.nauck-it.de/server/build.nauck-it.de/ViewServerReport.aspx?Category=FAKE">FAKE build project on his server</a> which showed us some compatibility issues:</p>
<ul>
<li>In FAKE:
<ul>
<li>Race condition in FAKE’s trace functionality</li>
<li>Better XML tracing if something fails</li>
<li>The tracing buffer will be flushed after every build target</li>
<li>Every task has a Timeout property (Default: 5 min.)</li>
<li>Setting of environment variables fixed</li>
<li><a href="http://www.nunit.org/index.php?p=consoleCommandLine&amp;r=2.2">Showing labels in NUnit</a> is now the default</li>
</ul>
</li>
<li>In <a href="http://docu.jagregory.com/">Docu</a>:
<ul>
<li><a href="http://github.com/forki/docu/commit/80daa6b48cb7f652ff5646a45fce4b94619fad1f">Unhandled exception in Docu.exe</a></li>
</ul>
</li>
<li>In CC.NET:
<ul>
<li>Implemented <a href="http://confluence.public.thoughtworks.org/display/CCNET/Git+Source+Control+Block">support for git submodules</a> (<a href="http://jira.public.thoughtworks.org/browse/CCNET-1922">CCNET-1922</a>)</li>
</ul>
</li>
</ul>
<p>@Daniel: Thank you very much for helping me on this CruiseControl.NET stuff. I really appreciate this.</p>
<h5>MSBuild task changes</h5>
<p>The MSBuild task in FAKE gets a sequence of project files and compiles them in the given order. This might be slow if you have lots of dependent projects. Then MSBuild might analyze the dependencies over and over again. To fix this issue I currently see two possible solutions:</p>
<ol>
<li>Generate a temporary solution file and use this for compilation.</li>
<li>Analyze the given projects and remove all dependent projects from the list.</li>
</ol>
<p>FAKE 1.40.5.0 implements the second idea. If you have a better idea please contact me.</p>
<p>&copy;2010 <a href="http://www.navision-blog.de">Rash thoughts about .NET, C#, F# and Dynamics NAV.</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.navision-blog.de/2010/07/14/fake-f-make-1-40-5-0-released-bugfixes-for-cruisecontrol-net/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>&#8220;Fake &#8211; F# Make&#8221; 1.33.0 released</title>
		<link>http://www.navision-blog.de/2010/07/11/fake-f-make-1-33-0-released/</link>
		<comments>http://www.navision-blog.de/2010/07/11/fake-f-make-1-33-0-released/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 15:11:49 +0000</pubDate>
		<dc:creator>Steffen Forkmann</dc:creator>
				<category><![CDATA[F#]]></category>
		<category><![CDATA[FAKE - F# Make]]></category>
		<category><![CDATA[F-sharp Make]]></category>
		<category><![CDATA[Fake]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[SideBySideSpecification]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[XPath]]></category>

		<guid isPermaLink="false">http://www.navision-blog.de/2010/07/11/fake-f-make-1-33-0-released/</guid>
		<description><![CDATA[Yesterday I released “FAKE – F# Make” version 1.33.0. This release has lots of small bug fixes and a couple of new features. Important links: Project page Download Repository Git helpers -Fake.Git.dll Git is a distributed revision control system with an emphasis on speed. Git was initially designed and developed by Linus Torvalds for Linux [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I released “FAKE – F# Make” version 1.33.0. This release has lots of small bug fixes and a couple of new features.</p>
<p>Important links:</p>
<ul>
<li><a href="http://bitbucket.org/forki/fake/wiki/Home">Project page</a></li>
<li><a href="http://bitbucket.org/forki/fake/downloads">Download</a></li>
<li><a href="http://github.com/forki/FAKE">Repository</a></li>
</ul>
<h5>Git helpers -Fake.Git.dll</h5>
<blockquote><p>Git is a distributed revision control system with an emphasis on speed. Git was initially designed and developed by Linus Torvalds for Linux kernel development. Every Git working directory is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server.</p>
<p>[<a href="http://en.wikipedia.org/wiki/Git_%28software%29">Wikipedia</a>]</p></blockquote>
<p>In the last couple of months I worked on small helper library for controlling <a href="http://en.wikipedia.org/wiki/Git_%28software%29">Git</a>. This library is now released as part of “FAKE – F# Make”. You can find the source code at <a title="http://github.com/forki/FAKE/tree/master/src/app/Fake.Git/" href="http://github.com/forki/FAKE/tree/master/src/app/Fake.Git/">http://github.com/forki/FAKE/tree/master/src/app/Fake.Git/</a>.</p>
<p>Features:</p>
<ul>
<li>Repository handling
<ul>
<li>init, clone</li>
</ul>
</li>
<li>Submodules
<ul>
<li>init, clone, information about submodules</li>
</ul>
</li>
<li>Branches
<ul>
<li>checkout, create, delete, merge, rebase, tag, pull, push, reset, commit, …</li>
</ul>
</li>
<li>SHA1 calculation</li>
</ul>
<h5>Documentation generation with James Gregory&#8217;s docu tool</h5>
<blockquote><p><strong>What&#8217;s a docu?</strong> A documentation generator for .Net that isn&#8217;t complicated, awkward, or difficult to use. Given an assembly and the XML that&#8217;s generated by Visual Studio, docu can produce an entire website of documentation with a single command.</p>
<p>[<a href="http://docu.jagregory.com/">docu website</a>]</p></blockquote>
<p>Fake comes bundled with James Gregory’s documentations generator “<a href="http://docu.jagregory.com/">docu</a>”, which converts <a href="http://msdn.microsoft.com/en-us/library/b2s063f7%28VS.71%29.aspx">XML-Documentation</a> comments into HTML files. All you need to do is downloading a <a href="http://bitbucket.org/forki/fake/downloads/templates.zip">template</a> and calling the docu task inside your build script:</p>
<pre style="font-family: consolas;">!+ (buildDir + <span style="color: maroon;">"*.dll"</span>)
     |&gt; Scan
     |&gt; Docu (<span style="color: blue;">fun</span> p <span style="color: blue;">-&gt;
</span>         {p <span style="color: blue;">with
</span>             ToolPath = docuPath + <span style="color: maroon;">"docu.exe"</span>
             TemplatesPath = templatesSrcDir
             OutputPath = docsDir })</pre>
<p>Since FAKE builds its own documentation with docu I started to add more (and hopefully better) XML doc comments. My plan is to describe more and more of the internal FAKE functions in the next releases. An updated HTML-document (generated via a <a href="http://docu.jagregory.com/">docu</a> task) can be found at <a title="http://www.navision-blog.de/fake/" href="http://www.navision-blog.de/fake/">http://www.navision-blog.de/fake/</a>.</p>
<h5>Side by side specification</h5>
<p>For Test-driven development (TDD) it’s sometimes nice to have the specifications next to the implementation files since the specs are considered as documentation.</p>
<p>By using a tool like <a title="VsCommands" href="http://mokosh.co.uk/vscommands/">VSCommands</a> it is possible to group the implementation with the specs (see also <a href="http://gist.github.com/457248">http://gist.github.com/457248</a>).</p>
<p>This “side by side specification” makes TDD a lot easier but of course  we don&#8217;t want to deploy the specification classes and the test data.</p>
<table>
<tbody>
<tr>
<td><img style="display: inline; border-width: 0px;" title="Side by side specification" src="http://www.navision-blog.de/images/FakeFMake1.33.0released_B55F/image.png" border="0" alt="Side by side specification" width="221" height="201" /></td>
<td>==&gt;</td>
<td><img style="display: inline; border-width: 0px;" title="After &quot;RemoveTestFromProject&quot;" src="http://www.navision-blog.de/images/FakeFMake1.33.0released_B55F/image_3.png" border="0" alt="After &quot;RemoveTestFromProject&quot;" width="142" height="117" /></td>
</tr>
</tbody>
</table>
<p>FAKE has a new feature which automatically removes all specification files and test framework references according to a given convention:</p>
<pre style="font-family: consolas;">Target <span style="color: maroon;">"BuildApp"</span> (<span style="color: blue;">fun</span> _ –<span style="color: blue;">&gt;
</span>      !+ <span style="color: maroon;">@"src\app\**\*.csproj"</span>
         |&gt; Scan
         |&gt; <strong>Seq.map (
             RemoveTestsFromProject
                 AllNUnitReferences      <span style="color: green;">// a default references convention</span>
                 AllSpecAndTestDataFiles <span style="color: green;">// a default file convention
</span>                 )</strong>
         |&gt; MSBuildRelease buildDir <span style="color: maroon;">"Build"</span>
         |&gt; Log <span style="color: maroon;">"AppBuild-Output: "</span>
)</pre>
<p>The conventions are simple functions and can be customized e.g.:</p>
<pre style="font-family: consolas;"><span style="color: green;">/// All Spec.cs or Spec.fs files and all files containing TestData</span>
<span style="color: blue;">let</span> AllSpecAndTestDataFiles elementName (s:string) =
     s.EndsWith <span style="color: maroon;">"Specs.cs"</span> ||
       s.EndsWith <span style="color: maroon;">"Specs.fs"</span> ||
       (elementName = <span style="color: maroon;">"Content"</span> &amp;&amp; s.Contains <span style="color: maroon;">"TestData"</span>)</pre>
<h5>Miscellaneous</h5>
<ul>
<li>SQL Server helpers are moved to Fake.SQL.dll
<ul>
<li>Additional functions for attaching and detaching databases.</li>
</ul>
</li>
<li>FileHelper.CopyCached function was added
<ul>
<li>Copies the files from a cache folder. If the files are not cached or the original files have a different write time the cache will be refreshed.</li>
</ul>
</li>
<li>EnvironmentHelper.environVarOrDefault added
<ul>
<li>Retrieves the environment variable or a given default.</li>
</ul>
</li>
<li>Fixed <a href="http://github.com/forki/FAKE/issues/closed#issue/3">Issue 3</a>: toRelativePath calculates paths with ..\..\ if needed</li>
<li>Added a build time report to the build output.</li>
<li>XPathReplace and XMLPoke tasks added.
<ul>
<li>Replaces text in an XML file at the location specified by an XPath expression.</li>
</ul>
</li>
<li><a href="http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx">ILMerge</a> task added</li>
<li><a href="http://wix.sourceforge.net/">Windows Installer XML (WiX)</a> task added</li>
</ul>
<p>&copy;2010 <a href="http://www.navision-blog.de">Rash thoughts about .NET, C#, F# and Dynamics NAV.</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.navision-blog.de/2010/07/11/fake-f-make-1-33-0-released/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>&#8220;FAKE &#8211; F# Make&#8221; 1.20.0 released</title>
		<link>http://www.navision-blog.de/2010/05/12/fake-f-make-1-20-0-released/</link>
		<comments>http://www.navision-blog.de/2010/05/12/fake-f-make-1-20-0-released/#comments</comments>
		<pubDate>Wed, 12 May 2010 12:26:43 +0000</pubDate>
		<dc:creator>Steffen Forkmann</dc:creator>
				<category><![CDATA[F#]]></category>
		<category><![CDATA[FAKE - F# Make]]></category>
		<category><![CDATA[F-sharp Make]]></category>

		<guid isPermaLink="false">http://www.navision-blog.de/2010/05/12/fake-f-make-1-20-0-released/</guid>
		<description><![CDATA[Today I released a new bugfix release for “FAKE – F# Make”. We fixed some path and logging issues and as a new feature we introduced the @@ operator which allows to combine paths. Download Repository &#169;2010 Rash thoughts about .NET, C#, F# and Dynamics NAV.. All Rights Reserved..]]></description>
			<content:encoded><![CDATA[<p>Today I released a new bugfix release for “FAKE – F# Make”. We fixed some path and logging issues and as a new feature we introduced the <a href="http://github.com/forki/FAKE/commit/540f8bc19b4a9dccecdee82ced779b7ac5036668">@@ operator</a> which allows to combine paths.</p>
<ul>
<li><a href="http://bitbucket.org/forki/fake/downloads">Download</a> </li>
<li><a href="http://github.com/forki/FAKE">Repository</a> </li>
</ul>
<p>&copy;2010 <a href="http://www.navision-blog.de">Rash thoughts about .NET, C#, F# and Dynamics NAV.</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.navision-blog.de/2010/05/12/fake-f-make-1-20-0-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using a MailboxProcessor to speedup &#8220;FAKE &#8211; F# MAKE&#8221;</title>
		<link>http://www.navision-blog.de/2010/05/07/using-a-mailboxprocessor-to-speedup-fake-f-make/</link>
		<comments>http://www.navision-blog.de/2010/05/07/using-a-mailboxprocessor-to-speedup-fake-f-make/#comments</comments>
		<pubDate>Fri, 07 May 2010 11:37:28 +0000</pubDate>
		<dc:creator>Steffen Forkmann</dc:creator>
				<category><![CDATA[F#]]></category>
		<category><![CDATA[FAKE - F# Make]]></category>
		<category><![CDATA[F-sharp Make]]></category>
		<category><![CDATA[Fake]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.navision-blog.de/2010/05/07/using-a-mailboxprocessor-to-speedup-fake-f-make/</guid>
		<description><![CDATA[Earlier today I released “FAKE – F# Make” version 1.10.0. This new release contains a lot path issue fixes for Mono and a new architecture for logging and tracing. A guy named Joel Mueller had an awesome idea and sent me some patches. He noticed that TraceHelper.fs writes all messages synchronously to the console and/or [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier today I released <a href="http://bitbucket.org/forki/fake/downloads">“FAKE – F# Make” version 1.10.0</a>. This new release contains a lot path issue fixes for <a href="http://www.mono-project.com/Main_Page">Mono</a> and a new architecture for logging and tracing. </p>
<p>A guy named Joel Mueller had an awesome idea and sent me some patches. He noticed that TraceHelper.fs writes all messages synchronously to the console and/or a XML output file, which means the actual build operations must wait on the writing of hundreds of trace messages, slowing down the actual build.</p>
<p>His idea was to use a MailboxProcessor to buffer up the trace messages and write them out asynchronously, so that the actual build can proceed at full speed.</p>
<div style="font-family: courier new; background: white; color: black; font-size: 10pt">
<p style="margin: 0px"><span style="color: blue">type</span> Message = </p>
<p style="margin: 0px">&#160;&#160;&#160; { Text&#160;&#160;&#160;&#160;&#160; : string</p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160; Color&#160;&#160;&#160;&#160; : ConsoleColor</p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160; Newline&#160;&#160; : bool</p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160; Important : bool}</p>
<p style="margin: 0px">&#160;</p>
<p style="margin: 0px"><span style="color: green">/// &#8230;.</span></p>
<p style="margin: 0px">&#160;</p>
<p style="margin: 0px"><span style="color: blue">let</span> buffer = MailboxProcessor.Start (<span style="color: blue">fun</span> inbox <span style="color: blue">-&gt;</span></p>
<p style="margin: 0px">&#160;&#160;&#160; <span style="color: blue">let</span> <span style="color: blue">rec</span> loop () = </p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160; async {</p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">let!</span> (msg:Message) = inbox.Receive()</p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">match</span> traceMode <span style="color: blue">with</span></p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; | Console <span style="color: blue">-&gt;</span> logMessageToConsole msg</p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; | Xml&#160;&#160;&#160;&#160; <span style="color: blue">-&gt;</span> appendXML msg.Text</p>
<p style="margin: 0px">&#160;</p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">return!</span> loop ()}</p>
<p style="margin: 0px">&#160;</p>
<p style="margin: 0px">&#160;&#160;&#160; loop ())&#160;&#160;&#160;&#160;&#160; </p>
</p></div>
<p>Now all internal logging and tracing functions can post their their messages to the inbox of the MailboxProcessor:</p>
<div style="font-family: courier new; background: white; color: black; font-size: 10pt">
<p style="margin: 0px"><span style="color: green">/// Logs the specified string (via message buffer)</span></p>
<p style="margin: 0px"><span style="color: blue">let</span> logMessage important newLine message =</p>
<p style="margin: 0px">&#160;&#160;&#160; <span style="color: blue">match</span> traceMode <span style="color: blue">with</span></p>
<p style="margin: 0px">&#160;&#160;&#160; | Console <span style="color: blue">-&gt;</span></p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160; { Text = message; </p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Important = important; </p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Newline = newLine; </p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Color = ConsoleColor.White }</p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; |&gt; buffer.Post</p>
<p style="margin: 0px">&#160;&#160;&#160; | Xml&#160;&#160;&#160;&#160; <span style="color: blue">-&gt;</span> </p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160; { defaultMessage <span style="color: blue">with</span> </p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Text = sprintf <span style="color: maroon">&quot;&lt;message&gt;&lt;![CDATA[%s]]&gt;&lt;/message&gt;&quot;</span> </p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; message }</p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; |&gt; buffer.Post </p>
</p></div>
<p>This idea reduces the build time of FAKE’s self build from 3 min. to 2 min. Which is really amazing, since I didn’t have to change anything in the build script. This version is compatible to the last released version.</p>
<p>Please download <a href="http://bitbucket.org/forki/fake/downloads">“FAKE – F# Make” version 1.10.0</a> and tell me what you think.</p>
<p>&copy;2010 <a href="http://www.navision-blog.de">Rash thoughts about .NET, C#, F# and Dynamics NAV.</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.navision-blog.de/2010/05/07/using-a-mailboxprocessor-to-speedup-fake-f-make/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>&#8220;FAKE &#8211; F# Make&#8221; and NaturalSpec released</title>
		<link>http://www.navision-blog.de/2010/04/13/fake-f-sharp-make-and-naturalspec-released/</link>
		<comments>http://www.navision-blog.de/2010/04/13/fake-f-sharp-make-and-naturalspec-released/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 08:06:46 +0000</pubDate>
		<dc:creator>Steffen Forkmann</dc:creator>
				<category><![CDATA[F#]]></category>
		<category><![CDATA[FAKE - F# Make]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[F-sharp Make]]></category>
		<category><![CDATA[NaturalSpec]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://www.navision-blog.de/2010/04/13/fake-f-make-and-naturalspec-released/</guid>
		<description><![CDATA[Yesterday Microsoft released the RTM versions of Visual Studio 2010, .NET Framework 4.0 and F# 2.0.0.0 and so it is time to announce the first official releases of “Fake – F# Make” and NaturalSpec. Both projects are now compatible with Visual Studio 2010 RC and RTM and the corresponding F# versions. Fake – F# Make [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday Microsoft released the RTM versions of <a href="http://www.microsoft.com/visualstudio/en-us/download">Visual Studio 2010</a>, .NET Framework 4.0 and <a href="http://msdn.microsoft.com/de-de/fsharp/cc835251%28en-us%29.aspx">F# 2.0.0.0</a> and so it is time to announce the first official releases of “<a href="http://bitbucket.org/forki/fake/wiki/Home">Fake – F# Make</a>” and <a href="http://bitbucket.org/forki/naturalspec/wiki/Home">NaturalSpec</a>. Both projects are now compatible with Visual Studio 2010 RC and RTM and the corresponding F# versions.</p>
<h5>Fake – F# Make version 1.0.0</h5>
<p>&quot;FAKE &#8211; F# Make&quot; is a build automation system, which is intended to provide a much better tooling support than XML-based build languages like MSBuild or NAnt. Due to its integration in F#, all benefits of the .NET Framework and functional programming can be used, including the extensive class library, powerful debuggers and integrated development environments like Visual Studio 2008, Visual Studio 2010 or SharpDevelop, which provide syntax highlighting and code completion.</p>
<p>Like F# itself the new build language was designed to be succinct, typed, declarative, extensible and easy to use.</p>
<ul>
<li><a href="http://bitbucket.org/forki/fake/wiki/Home">Project page</a> with samples and articles </li>
<li><a href="http://bitbucket.org/forki/fake/downloads/">Download page</a> </li>
<li><a href="http://github.com/forki/FAKE">Github repository</a> </li>
</ul>
<h5>NaturalSpec version 1.0.0</h5>
<p>NaturalSpec is a UnitTest framework based on <a href="http://www.nunit.org/">NUnit</a> and completely written in F# &#8211; but you don&#8217;t have to learn F# to use it. The idea is that you can write your spec mostly in a natural language like in the following sample:</p>
</p>
<div style="font-family: courier new; background: white; color: black; font-size: 10pt">
<p style="margin: 0px">[&lt;Scenario&gt;]</p>
<p style="margin: 0px"><span style="color: blue">let</span> &#8220;When removing an element from a list it should not contain the element&#8220;() =</p>
<p style="margin: 0px">&#160; Given [1;2;3;4;5]&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: green">// &quot;Arrange&quot; test context</span></p>
<p style="margin: 0px">&#160;&#160;&#160; |&gt; When removing 3&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: green">// &quot;Act&quot;</span></p>
<p style="margin: 0px">&#160;&#160;&#160; |&gt; It shouldn&#8217;t contain 3&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: green">// &quot;Assert&quot;</span></p>
<p style="margin: 0px">&#160;&#160;&#160; |&gt; It should contain 4&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: green">// another assertion</span></p>
<p style="margin: 0px">&#160;&#160;&#160; |&gt; It should have (Length 4)&#160;&#160;&#160; <span style="color: green">// Assertion for length</span></p>
<p style="margin: 0px">&#160;&#160;&#160; |&gt; It shouldn&#8217;t have Duplicates <span style="color: green">// it contains duplicates ?</span></p>
<p style="margin: 0px">&#160;&#160;&#160; |&gt; Verify&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: green">// Verify scenario</span></p>
</p></div>
</p>
<ul>
<li><a href="http://bitbucket.org/forki/naturalspec/wiki/Home">Project page</a> with samples and articles </li>
<li><a href="http://bitbucket.org/forki/naturalspec/downloads/">Download page</a> </li>
<li><a href="http://github.com/forki/NaturalSpec">Github repository</a> </li>
</ul>
<p>If you have any questions about the projects feel free to contact me.</p>
<p>&copy;2010 <a href="http://www.navision-blog.de">Rash thoughts about .NET, C#, F# and Dynamics NAV.</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.navision-blog.de/2010/04/13/fake-f-sharp-make-and-naturalspec-released/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>&#8220;FAKE &#8211; F# Make&#8221; 0.29 released &#8211; Ready for F# February 2010 CTP and .NET 4.0 RC</title>
		<link>http://www.navision-blog.de/2010/02/14/fake-f-make-0-29-released-ready-for-f-february-2010-ctp-and-net-4-0-rc/</link>
		<comments>http://www.navision-blog.de/2010/02/14/fake-f-make-0-29-released-ready-for-f-february-2010-ctp-and-net-4-0-rc/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 16:56:07 +0000</pubDate>
		<dc:creator>Steffen Forkmann</dc:creator>
				<category><![CDATA[English posts]]></category>
		<category><![CDATA[F#]]></category>
		<category><![CDATA[FAKE - F# Make]]></category>
		<category><![CDATA[Continuous Integration]]></category>
		<category><![CDATA[F-sharp Make]]></category>

		<guid isPermaLink="false">http://www.navision-blog.de/2010/02/14/fake-f-make-0-29-released-ready-for-f-february-2010-ctp-and-net-4-0-rc/</guid>
		<description><![CDATA[Last week I released version 0.29 of my build automation tool “FAKE – F# Make”. The new version comes along with a couple of changes which I will now describe. F# February 2010 CTP and .NET 4.0 RC “FAKE – F# Make” should be completely compatible with both, the F# February 2010 CTP and the [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I released version 0.29 of my build automation tool “FAKE – F# Make”. The new version comes along with a couple of changes which I will now describe.</p>
<h5>F# February 2010 CTP and .NET 4.0 RC</h5>
<p>“FAKE – F# Make” should be completely compatible with both, the <a href="http://go.microsoft.com/fwlink/?LinkId=151924">F# February 2010 CTP</a> and the F# version which is included in <a href="http://go.microsoft.com/fwlink/?LinkId=151923">Visual Studio 2010 RC</a>.</p>
<h5>FAKE self build and binaries on teamcity.codebetter.com</h5>
<p>Since “FAKE – F# Make” is a build automation tool, it was always used for it’s own build process. Now this build process could be moved to an open CI server at <a href="http://teamcity.codebetter.com/viewType.html?buildTypeId=bt114&amp;tab=buildTypeStatusDiv">teamcity.codebetter.com</a>. If you login as a guest you can download the latest “FAKE – F# Make” binaries from there.</p>
<h5>FAKE on build servers without F#</h5>
<p>With the new F# CTP there is no longer a need for installing F# on the build agents. In fact FAKE itself was built on build agents which don’t have a F# installation. </p>
<p>If you want to create such build scripts you have to do the following:</p>
<ol>
<li>Download the standalone zip file of the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=ba52e650-4e77-4b0b-b987-9f9ecd3bab3b&amp;displaylang=en">F# CTP</a> </li>
<li>Put the bin subfolder into your project tree </li>
<li>Modify the FSIPath value in the FAKE.exe.config file to match your FSharp bin folder
<ol>
<li>If you copy the contents the F# bin folder into ./tools/FSharp/ it should just work. </li>
</ol>
</li>
</ol>
<p>If you have F# projects you also need to modify your .fsproj files like this:</p>
<p>&lt;PropertyGroup&gt;    <br />&#160;&#160; ….     <br />&#160; &lt;FscToolPath&gt;..\..\..\tools\FSharp\&lt;/FscToolPath&gt;     <br />&lt;/PropertyGroup&gt;     <br />…     <br />&lt;Import Project=&quot;..\..\..\tools\FSharp\Microsoft.FSharp.Targets&quot; /&gt;</p>
<p>This modifications should take care that MSBuild will use the F# compiler from your tools paths.</p>
<h5>Generate your documentations with “docu”</h5>
<blockquote><p><strong>“What&#8217;s a docu?</strong> A documentation generator for .Net that isn&#8217;t complicated, awkward, or difficult to use. Given an assembly and the XML that&#8217;s generated by Visual Studio, docu can produce an entire website of documentation with a single command.” [<a href="http://docu.jagregory.com/">docu Homepage</a>]</p>
</blockquote>
<p>“FAKE – F# Make” 0.29 is bundled with this new documentation tool which can easily convert your xml-Documentation into some nice html pages. You can use the tool with the new Docu task like this:</p>
<div style="font-family: courier new; background: white; color: black; font-size: 10pt">
<p style="margin: 0px">Target? GenerateDocumentation &lt;-</p>
<p style="margin: 0px">&#160;&#160;&#160; <span style="color: blue">fun</span> _ <span style="color: blue">-&gt;</span></p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160; Docu (<span style="color: blue">fun</span> p <span style="color: blue">-&gt;</span></p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {p <span style="color: blue">with</span></p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ToolPath = <span style="color: maroon">@&quot;.\tools\FAKE\docu.exe&quot;</span></p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; TemplatesPath = <span style="color: maroon">@&quot;.\tools\FAKE\templates&quot;</span></p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; OutputPath = docDir })</p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (buildDir + <span style="color: maroon">&quot;MyAssembly.dll&quot;</span>)</p>
</p></div>
<p>You will also need the docu templates, which you can download from the product homepage. I’m planning to bundle some basic templates with the next version of FAKE.</p>
<h5>What’s next?</h5>
<p>At the moment I’m working on <a href="http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx">ILMerge</a> task for FAKE. I hope to release this with the next version. There are also some open issues with the Mono support but since teamcity.codebetter.com is getting a mono build agent I hope to make some progress here too.</p>
<p>If you have any questions or ideas for new features please contact me.</p>
<p>&copy;2010 <a href="http://www.navision-blog.de">Rash thoughts about .NET, C#, F# and Dynamics NAV.</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.navision-blog.de/2010/02/14/fake-f-make-0-29-released-ready-for-f-february-2010-ctp-and-net-4-0-rc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New syntactic sugar for &#8220;FAKE &#8211; F# Make&#8221; &#8211; Getting rid of magic strings</title>
		<link>http://www.navision-blog.de/2010/02/08/new-syntactic-sugar-for-fake-f-make-getting-rid-of-magic-strings/</link>
		<comments>http://www.navision-blog.de/2010/02/08/new-syntactic-sugar-for-fake-f-make-getting-rid-of-magic-strings/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 17:58:12 +0000</pubDate>
		<dc:creator>Steffen Forkmann</dc:creator>
				<category><![CDATA[English posts]]></category>
		<category><![CDATA[F#]]></category>
		<category><![CDATA[FAKE - F# Make]]></category>
		<category><![CDATA[F-sharp Make]]></category>
		<category><![CDATA[Fake]]></category>

		<guid isPermaLink="false">http://www.navision-blog.de/2010/02/08/new-syntactic-sugar-for-fake-f-make-getting-rid-of-magic-strings/</guid>
		<description><![CDATA[The new version 0.27 of “FAKE – F# Make” comes with new syntactic sugar for build targets and build dependencies. Don’t be afraid the old version is still supported &#8211; all scripts should still work with the new version. The problem Consider the following target definition: let buildDir = &#34;./build/&#34; &#160; Target &#34;Clean&#34; (fun _ [...]]]></description>
			<content:encoded><![CDATA[<p>The new version 0.27 of “FAKE – F# Make” comes with new syntactic sugar for build targets and build dependencies. Don’t be afraid the old version is still supported &#8211; all scripts should still work with the new version.</p>
<h5>The problem</h5>
<p>Consider the following target definition:</p>
<div style="font-family: courier new; background: white; color: black; font-size: 10pt">
<p style="margin: 0px"><span style="color: blue">let</span> buildDir = <span style="color: maroon">&quot;./build/&quot;</span></p>
<p style="margin: 0px">&#160;</p>
<p style="margin: 0px">Target <span style="color: maroon">&quot;Clean&quot;</span> (<span style="color: blue">fun</span> _ <span style="color: blue">-&gt;</span></p>
<p style="margin: 0px">&#160; CleanDir buildDir</p>
<p style="margin: 0px">)</p>
<p style="margin: 0px">&#160;</p>
<p style="margin: 0px">Target <span style="color: maroon">&quot;Default&quot;</span> (<span style="color: blue">fun</span> _ <span style="color: blue">-&gt;</span></p>
<p style="margin: 0px">&#160; trace <span style="color: maroon">&quot;Hello World from FAKE&quot;</span></p>
<p style="margin: 0px">)</p>
<p style="margin: 0px">&#160;</p>
<p style="margin: 0px"><span style="color: maroon">&quot;Default&quot;</span> &lt;== [<span style="color: maroon">&quot;Clean&quot;</span>]</p>
<p style="margin: 0px">&#160;</p>
<p style="margin: 0px">run <span style="color: maroon">&quot;Default&quot;</span></p>
</p></div>
<p>As you can see we are having a lot of “magic strings” for the target names and the dependency definitions. This was always a small shortcoming in FAKE, since this doesn’t allow refactoring and may result in runtime errors. </p>
<p>One of my goals for “FAKE – F# Make” is to remove these strings in future versions. Unfortunately this is not that easy, because it causes a lot of internal issues. In particular logging to the build server is much harder if you don’t have a target name.</p>
<h5></h5>
<h5>The first step</h5>
<p>As posted in a <a href="http://bitbucket.org/forki/fake/issue/5/mono-support-is-not-working">bitbucket</a> comment by <a href="http://bitbucket.org/cipher/">cipher</a> we could use the “<a href="http://weblogs.asp.net/podwysocki/archive/2010/02/05/using-and-abusing-the-f-dynamic-lookup-operator.aspx">dynamic lookup operator</a>” to remove some of the magic strings without breaking any internal code.</p>
<p>As a result we can rewrite the above sample as:</p>
<div style="font-family: courier new; background: white; color: black; font-size: 10pt">
<p style="margin: 0px"><span style="color: blue">let</span> buildDir = <span style="color: maroon">&quot;./build/&quot;</span></p>
<p style="margin: 0px">&#160;</p>
<p style="margin: 0px">Target? Clean &lt;-</p>
<p style="margin: 0px">&#160;&#160;&#160; <span style="color: blue">fun</span> _ <span style="color: blue">-&gt;</span> CleanDir buildDir</p>
<p style="margin: 0px">&#160;</p>
<p style="margin: 0px">Target? Default &lt;-</p>
<p style="margin: 0px">&#160;&#160;&#160; <span style="color: blue">fun</span> _ <span style="color: blue">-&gt;</span> trace <span style="color: maroon">&quot;Hello World from FAKE&quot;</span></p>
<p style="margin: 0px">&#160;</p>
<p style="margin: 0px">For? Default &lt;- Dependency? Clean</p>
<p style="margin: 0px">&#160;</p>
<p style="margin: 0px">Run? Default</p>
</p></div>
<p>All magic strings suddenly disappeared. I think this syntax looks really nice, but unfortunately the strings are not really gone, since the token <strong>Default</strong> is only checked at runtime.</p>
<h5>The idea for future versions</h5>
<p>Since the new syntax is really just syntactic sugar I’m always interested in a better solution. Currently I’m working on a syntax using monads. The result could look like this:</p>
<div style="font-family: courier new; background: white; color: black; font-size: 10pt">
<p style="margin: 0px"><span style="color: blue">let</span> buildDir = <span style="color: maroon">&quot;./build/&quot;</span></p>
<p style="margin: 0px">&#160;</p>
<p style="margin: 0px"><span style="color: blue">let</span> Clean = target { CleanDir buildDir }</p>
<p style="margin: 0px"><span style="color: blue">let</span> Default = </p>
<p style="margin: 0px">&#160; target { </p>
<p style="margin: 0px">&#160;&#160;&#160; trace <span style="color: maroon">&quot;Hello World from FAKE&quot;</span> </p>
<p style="margin: 0px">&#160;&#160;&#160; trace <span style="color: maroon">&quot;Another line&quot;</span></p>
<p style="margin: 0px">&#160; }</p>
<p style="margin: 0px">&#160;</p>
<p style="margin: 0px">Default &lt;== [Clean]</p>
<p style="margin: 0px"><span style="color: green"></span></p>
</p></div>
<div style="font-family: courier new; background: white; color: black; font-size: 10pt">
<p style="margin: 0px">Run Default</p>
</p></div>
<p>This way the magic string are really gone, but my current problem is retrieving the target name from the let-binding name. Please leave a comment if you have an idea to solve this issue.</p>
<p>&copy;2010 <a href="http://www.navision-blog.de">Rash thoughts about .NET, C#, F# and Dynamics NAV.</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.navision-blog.de/2010/02/08/new-syntactic-sugar-for-fake-f-make-getting-rid-of-magic-strings/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>xUnit.net support in &#8220;FAKE &#8211; F# Make&#8221; 0.14</title>
		<link>http://www.navision-blog.de/2009/10/18/xunit-support-in-fake-f-make-0-14/</link>
		<comments>http://www.navision-blog.de/2009/10/18/xunit-support-in-fake-f-make-0-14/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 16:09:16 +0000</pubDate>
		<dc:creator>Steffen Forkmann</dc:creator>
				<category><![CDATA[F#]]></category>
		<category><![CDATA[FAKE - F# Make]]></category>
		<category><![CDATA[CruiseControl.NET]]></category>
		<category><![CDATA[F-sharp Make]]></category>
		<category><![CDATA[Fake]]></category>
		<category><![CDATA[nunit]]></category>
		<category><![CDATA[xUnit.net. TeamCity]]></category>

		<guid isPermaLink="false">http://www.navision-blog.de/2009/10/18/xunit-support-in-fake-f-make-0-14/</guid>
		<description><![CDATA[Yesterday I released “FAKE – F# Make” version 0.14 with xUnit.net support. The usage is very easy and similar to the usage of NUnit: Target &#34;xUnitTest&#34; (fun () -&#62;&#160; &#160; let testAssemblies = &#160;&#160;&#160; !+ (testDir + @&#34;\Test.*.dll&#34;) &#160;&#160;&#160;&#160;&#160; &#124;&#62; Scan &#160; &#160; xUnit &#160;&#160;&#160; (fun p -&#62; &#160;&#160;&#160;&#160;&#160;&#160; {p with &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ShadowCopy = false; [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I released <a href="http://code.google.com/p/fake/">“FAKE – F# Make”</a> version 0.14 with <a href="http://www.codeplex.com/xunit">xUnit.net</a> support. The usage is very easy and similar to the usage of NUnit: </p>
<div style="font-family: courier new; background: white; color: black; font-size: 10pt">
<p style="margin: 0px">Target <span style="color: maroon">&quot;xUnitTest&quot;</span> (<span style="color: blue">fun</span> () <span style="color: blue">-&gt;</span>&#160; </p>
<p style="margin: 0px">&#160; <span style="color: blue">let</span> testAssemblies = </p>
<p style="margin: 0px">&#160;&#160;&#160; !+ (testDir + <span style="color: maroon">@&quot;\Test.*.dll&quot;</span>) </p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160; |&gt; Scan</p>
<p style="margin: 0px">&#160;</p>
<p style="margin: 0px">&#160; xUnit </p>
<p style="margin: 0px">&#160;&#160;&#160; (<span style="color: blue">fun</span> p <span style="color: blue">-&gt;</span> </p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160; {p <span style="color: blue">with</span> </p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ShadowCopy = <span style="color: blue">false</span>;</p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; HtmlPrefix = testDir}) </p>
<p style="margin: 0px">&#160;&#160;&#160; testAssemblies&#160; </p>
<p style="margin: 0px">)</p>
</p></div>
<p>This sample works perfectly with <a href="http://www.jetbrains.com/teamcity/">TeamCity</a> and creates a html-page per test project in addition:</p>
<p><img class="bordered" title="TeamCity output" alt="TeamCity output" src="http://www.navision-blog.de/images/xUnitsupportinFAKEFMake0.14_FF4A/image.png" width="500" height="279" /></p>
<p><img class="bordered" title="HMTL output" alt="HMTL output" src="http://www.navision-blog.de/images/xUnitsupportinFAKEFMake0.14_FF4A/image_3.png" width="500" height="135" /></p>
<p>If you want to publish the xUnit.net test results in <a href="http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET">CruiseControl.NET</a> just modify the build script a little:</p>
<div style="font-family: courier new; background: white; color: black; font-size: 10pt">
<p style="margin: 0px">Target <span style="color: maroon">&quot;xUnitTest&quot;</span> (<span style="color: blue">fun</span> () <span style="color: blue">-&gt;</span>&#160; </p>
<p style="margin: 0px">&#160; <span style="color: blue">let</span> testAssemblies = </p>
<p style="margin: 0px">&#160;&#160;&#160; !+ (testDir + <span style="color: maroon">@&quot;\Test.*.dll&quot;</span>) </p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160; |&gt; Scan</p>
<p style="margin: 0px">&#160;</p>
<p style="margin: 0px">&#160; xUnit </p>
<p style="margin: 0px">&#160;&#160;&#160; (<span style="color: blue">fun</span> p <span style="color: blue">-&gt;</span> </p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160; {p <span style="color: blue">with</span> </p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ShadowCopy = <span style="color: blue">false</span>;</p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; HtmlPrefix = testDir;</p>
<p style="margin: 0px">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <strong>XmlPrefix = testDir</strong> }) </p>
<p style="margin: 0px">&#160;&#160;&#160; testAssemblies&#160; </p>
<p style="margin: 0px">)</p>
</p></div>
<p>Now follow the steps in the <a href="http://xunit.codeplex.com/wikipage?title=HowToUseCcNet&amp;ProjectName=xunit">CrusieControl.NET documentation</a>. You will need to download the <a href="http://xunit.codeplex.com/">xUnitSummary.xsl</a> file and save it to your webdashboard directory. If everything works correctly you should see something like this:</p>
<p><img class="bordered" title="CruisControl.NET output" alt="CruisControl.NET output" src="http://www.navision-blog.de/images/xUnitsupportinFAKEFMake0.14_FF4A/image_4.png" width="500" height="300" /></p>
<p>&copy;2010 <a href="http://www.navision-blog.de">Rash thoughts about .NET, C#, F# and Dynamics NAV.</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.navision-blog.de/2009/10/18/xunit-support-in-fake-f-make-0-14/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integrating a &#8220;FAKE &#8211; F# Make&#8221; build script into CruiseControl.NET</title>
		<link>http://www.navision-blog.de/2009/10/14/integrating-a-fake-f-make-build-script-into-cruisecontrol-net/</link>
		<comments>http://www.navision-blog.de/2009/10/14/integrating-a-fake-f-make-build-script-into-cruisecontrol-net/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 08:38:55 +0000</pubDate>
		<dc:creator>Steffen Forkmann</dc:creator>
				<category><![CDATA[F#]]></category>
		<category><![CDATA[FAKE - F# Make]]></category>
		<category><![CDATA[CC.NET]]></category>
		<category><![CDATA[Continuous Integration]]></category>
		<category><![CDATA[CruiseControl]]></category>
		<category><![CDATA[CruiseControl.NET]]></category>
		<category><![CDATA[F-sharp Make]]></category>
		<category><![CDATA[Fake]]></category>

		<guid isPermaLink="false">http://www.navision-blog.de/2009/10/14/integrating-a-fake-f-make-build-script-into-cruisecontrol-net/</guid>
		<description><![CDATA[Since version 0.12 the FAKE build system provides an easy way to setup build configurations for CruiseControl.NET. “CruiseControl.NET is an Automated Continuous Integration server, implemented using the Microsoft .NET Framework.” [thoughtworks.org] In this article I will show you how you can set up a FAKE build script in CruiseControl.NET. We will use the CalculatorSample which [...]]]></description>
			<content:encoded><![CDATA[<p>Since version 0.12 the <a href="http://code.google.com/p/fake/">FAKE build system</a> provides an easy way to setup build configurations for <a href="http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET">CruiseControl.NET</a>.</p>
<blockquote><p><strong>“CruiseControl.NET</strong> is an Automated Continuous Integration server, implemented using the Microsoft .NET Framework.”</p>
<p align="right">[<a href="http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET">thoughtworks.org</a>] </p>
</blockquote>
<p>In this article I will show you how you can set up a FAKE build script in CruiseControl.NET. We will use the CalculatorSample which you can download from the <a href="http://code.google.com/p/fake/downloads/list">FAKE Download page</a>.</p>
<p>If you want to know how this build script works and how you could create one for your own projects please read the <a href="http://www.navision-blog.de/2009/04/01/getting-started-with-fake-a-f-sharp-make-tool/">“Getting started with FAKE”-tutorial</a>.</p>
<p>If you want to set up “FAKE – F# Make” build configurations in TeamCity please read <a href="http://www.navision-blog.de/2009/04/15/integrate-a-fake-f-make-build-script-into-teamcity/">“Integrating a &quot;FAKE – F# Make&quot; build script into TeamCity</a>”.</p>
<h5>Installing CruiseControl.NET</h5>
<p>You can download CruiseControl.NET from <a href="http://confluence.public.thoughtworks.org/display/CCNET/Download">thoughtworks.org</a>. After the installation process (<a href="http://confluence.public.thoughtworks.org/display/CCNET/Basic+Installation">further instructions</a>) you should see an empty dashboard:</p>
<p><a href="http://www.navision-blog.de/images/IntegratingaFAKEFMakebuildscriptinto.net_7967/image.png"><img class="bordered" title="CruiseControl.NET Dashboard" border="0" alt="CruiseControl.NET Dashboard" src="http://www.navision-blog.de/images/IntegratingaFAKEFMakebuildscriptinto.net_7967/image_thumb.png" width="500" height="231" /></a> </p>
<h5>Installing Subversion</h5>
<p>The CalculatorSample is using Subversion (SVN) for <a href="http://en.wikipedia.org/wiki/Revision_control">SourceControl</a>, so we need to download SVN from <a title="http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100" href="http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100">subversion.tigris.org</a>. I’m using the “Windows MSI installer with the basic win32 binaries” and installed them under “c:\Program Files (x86)\Subversion\”.</p>
<h5>Installing FxCop</h5>
<p>The CalculatorSample is using <a href="http://msdn.microsoft.com/en-us/library/bb429476%28VS.80%29.aspx">FxCop</a>, so we need to <a href="http://www.microsoft.com/downloads/details.aspx?familyid=9AEAA970-F281-4FB0-ABA1-D59D7ED09772&amp;displaylang=en">download</a> and install it next.</p>
<blockquote><p>“FxCop is an application that analyzes managed code assemblies (code that targets the .NET Framework common language runtime) and reports information about the assemblies, such as possible design, localization, performance, and security improvements. Many of the issues concern violations of the programming and design rules set forth in the <a href="http://go.microsoft.com/fwlink/?LinkId=70287">Design Guidelines</a> for Class Library Developers, which are the Microsoft guidelines for writing robust and easily maintainable code by using the .NET Framework.”</p>
<p align="right">[<a href="http://msdn.microsoft.com/en-us/library/bb429476%28VS.80%29.aspx">MSDN</a>]</p>
</blockquote>
<h5>Creating a FAKE Project</h5>
<p>Now create a new folder for the CalculatorSample sources. I’m using “<strong>d:\Calculator\</strong>” for the rest of the article.</p>
<p>The next step is to modify the CruiseControl.NET config file (“c:\Program Files (x86)\CruiseControl.NET\server\ccnet.config” on my machine):</p>
<div style="font-family: courier new; background: white; color: black; font-size: 7pt">
<p style="margin: 0px"><span style="color: blue">&lt;</span><span style="color: #a31515">cruisecontrol</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160; &lt;</span><span style="color: #a31515">project</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160; &lt;</span><span style="color: #a31515">name</span><span style="color: blue">&gt;</span>CalculatorExample<span style="color: blue">&lt;/</span><span style="color: #a31515">name</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160; &lt;</span><span style="color: #a31515">triggers</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">intervalTrigger</span><span style="color: blue"> </span><span style="color: red">name</span><span style="color: blue">=</span>&quot;<span style="color: blue">continuous</span>&quot;<span style="color: blue"> </span><span style="color: red">seconds</span><span style="color: blue">=</span>&quot;<span style="color: blue">30</span>&quot;<span style="color: blue"> </span><span style="color: red">initialSeconds</span><span style="color: blue">=</span>&quot;<span style="color: blue">30</span>&quot;<span style="color: blue">/&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160; &lt;/</span><span style="color: #a31515">triggers</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160; &lt;</span><span style="color: #a31515">sourcecontrol</span><span style="color: blue"> </span><span style="color: red">type</span><span style="color: blue">=</span>&quot;<span style="color: blue">svn</span>&quot;<span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">executable</span><span style="color: blue">&gt;</span>c:\Program Files (x86)\Subversion\bin\svn.exe<span style="color: blue">&lt;/</span><span style="color: #a31515">executable</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">workingDirectory</span><span style="color: blue">&gt;</span>d:\Calculator\<span style="color: blue">&lt;/</span><span style="color: #a31515">workingDirectory</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">trunkUrl</span><span style="color: blue">&gt;</span>http://fake.googlecode.com/svn/trunk/Samples/Calculator/<span style="color: blue">&lt;/</span><span style="color: #a31515">trunkUrl</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160; &lt;/</span><span style="color: #a31515">sourcecontrol</span><span style="color: blue">&gt;&#160;&#160;&#160; </span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160; &lt;</span><span style="color: #a31515">tasks</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">exec</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">executable</span><span style="color: blue">&gt;</span>d:\Calculator\tools\Fake\Fake.exe<span style="color: blue">&lt;/</span><span style="color: #a31515">executable</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">baseDirectory</span><span style="color: blue">&gt;</span>d:\Calculator\<span style="color: blue">&lt;/</span><span style="color: #a31515">baseDirectory</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">buildArgs</span><span style="color: blue">&gt;</span>completeBuild.fsx<span style="color: blue">&lt;/</span><span style="color: #a31515">buildArgs</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="color: #a31515">exec</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160; &lt;/</span><span style="color: #a31515">tasks</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160; &lt;</span><span style="color: #a31515">publishers</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">merge</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">files</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">file</span><span style="color: blue">&gt;</span>d:\Calculator\test\FXCopResults.xml<span style="color: blue">&lt;/</span><span style="color: #a31515">file</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">file</span><span style="color: blue">&gt;</span>d:\Calculator\test\TestResults.xml<span style="color: blue">&lt;/</span><span style="color: #a31515">file</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">file</span><span style="color: blue">&gt;</span>d:\Calculator\output\Results.xml<span style="color: blue">&lt;/</span><span style="color: #a31515">file</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="color: #a31515">files</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160; &lt;/</span><span style="color: #a31515">merge</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">xmllogger</span><span style="color: blue"> /&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160; &lt;/</span><span style="color: #a31515">publishers</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160; &lt;/</span><span style="color: #a31515">project</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&lt;/</span><span style="color: #a31515">cruisecontrol</span><span style="color: blue">&gt;</span></p>
</p></div>
<p>In this configuration I set up a trigger which checks every 30 sec. for changes in my CalculatorSample project. </p>
<p>If SVN finds changes FAKE.exe is called with my build script (completeBuild.fsx). </p>
<p>After the build I want to merge the FxCop and NUnit output files with my build results to create a build report.</p>
<h5>Configuring the dashboard</h5>
<p>In order to provide a nicer output on the dashboard we need to modify the BuildPlugins section in the dashboard.config file (“c:\Program Files (x86)\CruiseControl.NET\webdashboard\dashboard.config” on my machine):</p>
<div style="font-family: courier new; background: white; color: black; font-size: 10pt">
<p style="margin: 0px"><span style="color: blue">&lt;</span><span style="color: #a31515">buildPlugins</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160; &lt;</span><span style="color: #a31515">buildReportBuildPlugin</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160; &lt;</span><span style="color: #a31515">xslFileNames</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">xslFile</span><span style="color: blue">&gt;</span>xsl\header.xsl<span style="color: blue">&lt;/</span><span style="color: #a31515">xslFile</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">xslFile</span><span style="color: blue">&gt;</span>xsl\modifications.xsl<span style="color: blue">&lt;/</span><span style="color: #a31515">xslFile</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">xslFile</span><span style="color: blue">&gt;</span>xsl\NCoverSummary.xsl<span style="color: blue">&lt;/</span><span style="color: #a31515">xslFile</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">xslFile</span><span style="color: blue">&gt;</span>xsl\fxcop-summary_1_36.xsl<span style="color: blue">&lt;/</span><span style="color: #a31515">xslFile</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">xslFile</span><span style="color: blue">&gt;</span>xsl\unittests.xsl<span style="color: blue">&lt;/</span><span style="color: #a31515">xslFile</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160;&#160; &lt;</span><span style="color: #a31515">xslFile</span><span style="color: blue">&gt;</span>xsl\nant.xsl<span style="color: blue">&lt;/</span><span style="color: #a31515">xslFile</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160; &lt;/</span><span style="color: #a31515">xslFileNames</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160; &lt;/</span><span style="color: #a31515">buildReportBuildPlugin</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160; &lt;</span><span style="color: #a31515">buildLogBuildPlugin</span><span style="color: blue"> /&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160; &lt;</span><span style="color: #a31515">xslReportBuildPlugin</span><span style="color: blue"> </span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160; </span><span style="color: red">description</span><span style="color: blue">=</span>&quot;<span style="color: blue">NCover Report</span>&quot;<span style="color: blue"> </span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160; </span><span style="color: red">actionName</span><span style="color: blue">=</span>&quot;<span style="color: blue">NCoverBuildReport</span>&quot;<span style="color: blue"> </span></p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160; </span><span style="color: red">xslFileName</span><span style="color: blue">=</span>&quot;<span style="color: blue">xsl\NCover.xsl</span>&quot;<span style="color: blue">&gt;&lt;/</span><span style="color: #a31515">xslReportBuildPlugin</span><span style="color: blue">&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160; &lt;</span><span style="color: #a31515">xslReportBuildPlugin</span><span style="color: blue"> </span><span style="color: red">description</span><span style="color: blue">=</span>&quot;<span style="color: blue">FxCop Report</span>&quot;</p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160; </span><span style="color: red">actionName</span><span style="color: blue">=</span>&quot;<span style="color: blue">FxCopBuildReport</span>&quot;</p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160; </span><span style="color: red">xslFileName</span><span style="color: blue">=</span>&quot;<span style="color: blue">xsl\fxcop-report_1_36.xsl</span>&quot;<span style="color: blue"> /&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&#160; &lt;</span><span style="color: #a31515">xslReportBuildPlugin</span><span style="color: blue"> </span><span style="color: red">description</span><span style="color: blue">=</span>&quot;<span style="color: blue">NUnit Report</span>&quot;</p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160; </span><span style="color: red">actionName</span><span style="color: blue">=</span>&quot;<span style="color: blue">NUnitBuildReport</span>&quot;</p>
<p style="margin: 0px"><span style="color: blue">&#160;&#160;&#160;&#160; </span><span style="color: red">xslFileName</span><span style="color: blue">=</span>&quot;<span style="color: blue">xsl\tests.xsl</span>&quot;<span style="color: blue"> /&gt;</span></p>
<p style="margin: 0px"><span style="color: blue">&lt;/</span><span style="color: #a31515">buildPlugins</span><span style="color: blue">&gt;</span></p>
</p></div>
<p>As you can see we use the nant.xsl to transform the FAKE output to HTML.</p>
<h5>Starting the build</h5>
<p>Now if everything is configured correctly, you can tell CruiseControl.NET to run your build (press “Start” for your build project on the dashboard):</p>
<p><img class="bordered" title="Press Start on the dashboard" alt="Press Start on the dashboard" src="http://www.navision-blog.de/images/IntegratingaFAKEFMakebuildscriptinto.net_7967/image_3.png" width="500" height="106" /> </p>
<p>Now CruiseControl.NET should use SVN to checkout the CalculatorSample sources and run the build. The output on the project page for build 1 should look like this:</p>
<p><a href="http://www.navision-blog.de/images/IntegratingaFAKEFMakebuildscriptinto.net_7967/image_4.png"><img class="bordered" title="Build output" alt="Build output" src="http://www.navision-blog.de/images/IntegratingaFAKEFMakebuildscriptinto.net_7967/image_thumb_3.png" width="500" height="388" /></a> </p>
<p><a href="http://www.navision-blog.de/images/IntegratingaFAKEFMakebuildscriptinto.net_7967/image_5.png"><img class="bordered" title="Build output 2" border="0" alt="Build output 2" src="http://www.navision-blog.de/images/IntegratingaFAKEFMakebuildscriptinto.net_7967/image_thumb_4.png" width="500" height="388" /></a> </p>
<p>You can also inspect the NUnit and FxCop results:</p>
<p>&#160;<a href="http://www.navision-blog.de/images/IntegratingaFAKEFMakebuildscriptinto.net_7967/image_6.png"><img class="bordered" title="NUnit zest results" border="0" alt="NUnit zest results" src="http://www.navision-blog.de/images/IntegratingaFAKEFMakebuildscriptinto.net_7967/image_thumb_5.png" width="500" height="236" /></a> </p>
<p><a href="http://www.navision-blog.de/images/IntegratingaFAKEFMakebuildscriptinto.net_7967/image_7.png"><img class="bordered" title="FxCop results" border="0" alt="FxCop results" src="http://www.navision-blog.de/images/IntegratingaFAKEFMakebuildscriptinto.net_7967/image_thumb_6.png" width="500" height="249" /></a></p>
<p>Please feel free to give feedback if you have any problems with this article.</p>
<p>&copy;2010 <a href="http://www.navision-blog.de">Rash thoughts about .NET, C#, F# and Dynamics NAV.</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.navision-blog.de/2009/10/14/integrating-a-fake-f-make-build-script-into-cruisecontrol-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;FAKE &#8211; F# Make&#8221; Version 0.10 released</title>
		<link>http://www.navision-blog.de/2009/10/06/fake-fsharp_make_version_0_10_released/</link>
		<comments>http://www.navision-blog.de/2009/10/06/fake-fsharp_make_version_0_10_released/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 09:59:10 +0000</pubDate>
		<dc:creator>Steffen Forkmann</dc:creator>
				<category><![CDATA[F#]]></category>
		<category><![CDATA[FAKE - F# Make]]></category>
		<category><![CDATA[F-sharp Make]]></category>
		<category><![CDATA[Fake]]></category>

		<guid isPermaLink="false">http://www.navision-blog.de/2009/10/06/fake-fsharp_make_version_0_10_released/</guid>
		<description><![CDATA[I just released a new version of my Open Source Build Automation Framework “FAKE – F# Make”. You can read more about FAKE on the project website or in the Getting started with &#34;FAKE &#8211; F# Make&#34;-article. Although the new release contains many bugfixes, I only want to show the two major improvements here. 1. [...]]]></description>
			<content:encoded><![CDATA[<p>I just released a new version of my Open Source Build Automation Framework <a href="http://code.google.com/p/fake/">“FAKE – F# Make”</a>. You can read more about FAKE on the <a href="http://code.google.com/p/fake/">project website</a> or in the <a href="http://www.navision-blog.de/2009/04/01/getting-started-with-fake-a-f-sharp-make-tool/">Getting started with &quot;FAKE &#8211; F# Make&quot;</a>-article.</p>
<p>Although the new release contains many bugfixes, I only want to show the two major improvements here.</p>
<h4>1. FAKE 0.10 uses FSI instead of FSC</h4>
<p>From now on FAKE uses the “F# Interactive” (fsi.exe) instead of the F# Compiler (fsc.exe) to run the build scripts, which brings two major improvements.</p>
<h5>No TempPath for compiled binaries needed</h5>
<p>Due to the fact that FAKE scripts are no longer compiled at the beginning of the build process, we don’t need a temporary folder for the created binaries. </p>
<h5>Loading modules at runtime</h5>
<p>The <font color="#0080ff">#load</font> command in F# scripts allows us to load modules at runtime. Now we are able to put reusable Targets or TargetTemplates (see below) into external build script files.</p>
<h4>2. TargetTemplates</h4>
<p>TargetTemplates provide an easy way to reuse common Targets. Let’s consider a (very) small sample:</p>
<div style="font-family: courier new; background: white; color: black; font-size: 10pt">
<p style="margin: 0px">Target <span style="color: maroon">&quot;TraceHello&quot;</span> (<span style="color: blue">fun</span> () <span style="color: blue">-&gt;</span></p>
<p style="margin: 0px">&#160; trace <span style="color: maroon">&quot;Hello World from FAKE&quot;</span></p>
<p style="margin: 0px">)</p>
</p></div>
<p>This Target “TraceHello” traces a “Hello World” string into our build log. Now we want it to be slightly more generic and to trace a custom string. We can do this by using a TargetTemplate: </p>
<div style="font-family: courier new; background: white; color: black; font-size: 10pt">
<p style="margin: 0px"><span style="color: green">/// createTraceTarget: string -&gt; string -&gt; Target</span></p>
<p style="margin: 0px"><span style="color: blue">let</span> createTraceTarget = TargetTemplate (<span style="color: blue">fun</span> s <span style="color: blue">-&gt;</span></p>
<p style="margin: 0px">&#160; trace s</p>
<p style="margin: 0px">)</p>
</p></div>
<p>Now we have a template (or a function which generates targets) that gets a string for the target name and a string for the trace text and generates&#160; a usable target:</p>
<div style="font-family: courier new; background: white; color: black; font-size: 10pt">
<p style="margin: 0px">createTraceTarget <span style="color: maroon">&quot;TraceHello&quot;</span> <span style="color: maroon">&quot;Hello World from FAKE&quot;</span></p>
<p style="margin: 0px">createTraceTarget <span style="color: maroon">&quot;Trace2&quot;</span> <span style="color: maroon">&quot;Trace another text&quot;</span></p>
</p></div>
<p>Of course the TargetTemplate function is generic and can be used with any tuple as parameter:</p>
<div style="font-family: courier new; background: white; color: black; font-size: 10pt">
<p style="margin: 0px"><span style="color: green">/// createTraceTarget: string -&gt; string*int -&gt; Target</span></p>
<p style="margin: 0px"><span style="color: blue">let</span> createTraceTarget = TargetTemplate (<span style="color: blue">fun</span> (s,d) <span style="color: blue">-&gt;</span></p>
<p style="margin: 0px">&#160; trace s</p>
<p style="margin: 0px">&#160; trace &lt;| sprintf <span style="color: maroon">&quot;my int: %d&quot;</span> d</p>
<p style="margin: 0px">)</p>
<p style="margin: 0px">&#160;</p>
<p style="margin: 0px">createTraceTarget <span style="color: maroon">&quot;TraceHello&quot;</span> (<span style="color: maroon">&quot;Hello World from FAKE&quot;</span>,2)</p>
<p style="margin: 0px">createTraceTarget <span style="color: maroon">&quot;Trace2&quot;</span> (<span style="color: maroon">&quot;Trace another text&quot;</span>,42)</p>
</p></div>
<p>&copy;2010 <a href="http://www.navision-blog.de">Rash thoughts about .NET, C#, F# and Dynamics NAV.</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.navision-blog.de/2009/10/06/fake-fsharp_make_version_0_10_released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
