Posts Tagged ‘NAnt’

Speeding Up The Build

// May 20th, 2009 // No Comments » // Programming, Work

I’ve written a blog on Huddle about Speeding Up The Build.

It covers a few changes that can be made to help keep your build nice and quick (anything over 60 seconds I would consider slow). Ours is currently at 100 seconds, so we’ve still got some work to do. It’s not bad though considering we have around 40 projects, over a thousand unit tests, css/jss compression, and run aspnet_compiler as a further check.

The Build Process Using CruiseControl.Net & NAnt

// April 15th, 2009 // No Comments » // Programming, Work

CruiseControl.Net

What Is CruiseControl.Net?

  • CruiseControl.Net is a free framework for continuous build integration.
  • It runs as a Windows service on our build server, watching for changes to our source control system. When it detects a change (ie a developer commits some code) it triggers an action.
  • It also comprised of a Web Dashboard, so that build reports (ie the outcome of an action) can be viewed in a browser.
  • It’s configured using XML.
  • CruiseControl.Net lives on our “Kermit” build server.

(more…)

NAnt Tips and Tricks

// February 21st, 2009 // No Comments » // Programming

Having been working with our build setup a lot over the last 6 months I thought I’d share some of NAnt goodness I’ve learnt.

NAnt In General

Firstly, NAnt is quite simple. There’s not a huge amount to learn. It’s basically an application calling other applications and commands for you, all done using xml configuration files (that have a “.build” extension).

(more…)

Enforcing Code Styles with ReSharper and StyleCop

// February 20th, 2009 // 7 Comments » // Programming

In my previous article, Compiling Code – go.bat is your friend, I explained about using NAnt to compile your code (MSBuild, and aspnet_compiler), run unit tests, and use go.bat (as an easy way for developers to be confident their code will pass).

Having ensured your code will compile and work, this article is about making sure your code is written cleanly and in similar fashion across the whole team. This of course has many benefits especially when viewing code you haven’t written.

(more…)

Compiling Code with NAnt, go.bat is Your Friend

// September 14th, 2008 // No Comments » // Programming

As I’ve mentioned before, in the root of our “dev tree” (ie trunk) we have a “go.bat” file which compiles are code. As part of the code police, it’s a sly way of trying to impose code that doesn’t break the build, but it’s actually quite effective.

We take a NetBeans approach using NAnt to control the whole build (from compilation to deployment), and use go.bat to run the same build files that CruiseControl.Net uses (but not the complete set, as on a local pc you don’t need to deploy etc…).

(more…)