Last night I gave a talk on Real World .NET: Building a Portal with DotNetNuke to Ireland .Net Developers Alliance. I enjoyed it, despite running an hour over, as I was employing my usual gonzo-style freeform presentation technique, where my talk bears little resemblance to the slide deck.
During the talk, I mentioned that we use Nant (a free .net build tool) build scripts to support continuous integration of the source code changes. Recently, one of the coreteam members, Joe Brinkman, has put a lot of effort into beefing up our build script capabilities, so they now support the ability to create source and binary versions, and even automate the compression into zip files. We'll be using this in future to provide two distributions, one with all the code, and one with the minimal files required to get up and running. I was asked if I could get a copy of this file, and after checking, I see it's made it's way into the current distribution on dotnetnuke.com (3.0.13).
How to use the DotNetNuke.build file.
Note:One shortcut in nAnt is that if you only have one .build file in a directory then you don't need to specify the build file name when executing commands, so you may want to remove the DotNetNuke.all.build to simplify matters.
Some useful commands with this build file:
See the help:
>nant -projecthelp
Create the binary file (no source):
>nant CreateBinZip
Create a source zip file:
>nant CreateSrcZip
Compile the app (in release mode) and create both the source and binary zip files:
>nant
Compile the app in debug but don't create the zip files:
>nant -D:debug=true Build
Compile just the core solution in debug mode and don't create zip files:
>nant -D:solutionName=Core -D:debug=true Build
There are a number of other combinations, take a look through the help to get ideas. One item missing at present is integration with nunit tests, but this is on the roadmap for future inclusion.