nant

Is nAnt still supported and suitable for .net 3.5/VS2008?

I am using MSBuild to build my stuff. I want to use CruiseControl.net as by Build Server. Now, CCNET refers nAnt a lot, but it looks as if ccnet can do most of the stuff nant could do through the project configuration and msbuild. Also, nAnt seems a bit unsupported, with a Beta release that is almost a year old now. In short: I am actu...

Using MBUnit in TeamCity

I'm compiling a NAnt project on linux with TeamCity Continuous Integration server. I have been able to generate a test report by running NAnt on mono thru a Command Line Runner but don't have the options of using the report like a NAnt Runner. I'm also using MBUnit for the testing framework. How can I merge in the test report and displa...

Should I switch from nant to msbuild?

I currently use nant, ccnet (cruise control), svn, mbunit. I use msbuild to do my sln build just because it was simpler to shell out. Are there any merits to switching my whole build script to MSBuild? I need to be able to run tests, watir style tests, xcopy deploy. Is this easier? Update: Any compelling features that would cause me t...

How do I create an automated build file for VB.Net in NAnt?

I have taken over the development of a web application that is targeted at the .net 1.0 framework and is written in C# and Visual Basic. I decided that the first thing we need to do is refine the build process, I wrote build files for the C# projects, but am having tons of problems creating a build file for Visual Basic. Admittedly, ...

best .net build tool

What is the best build tool for .net. I currently use nant but only because I have experience with ant. Do people prefer msbuild ? ...

CruiseControl.NET and NAnt

I have a CC.NET project configured to call a common NAnt build file, which does some stuff, and then calls a child NAnt build file. The child build file name is specified by CC.NET to the command build file using a property. The hurdle that I am trying to get over is that the common build file log gets overwritten by the child build fil...

CruiseControl.net duplicate NAnt timings

I'm trying to setup CruiseControl.net webdashboard at the moment. So far it works nice, but I have a problem with the NAnt Build Timing Report. Firstly, my current ccnet.config file looks something like this: <project name="bla"> ... <prebuild> <nant .../> </prebuild> <tasks> <nant .../> </tasks> <publishers> <nant .../> </publisher...

How to get SpecUnit to run within a TeamCity CI build

I am trying to get SpecUnit to run in a continuous integration build using Nant. At the moment the files are in the correct place but no output is generated from SpecUnit.Report.exe. Here is the relevant task from the nant build script: <echo message="**** Starting SpecUnit report generation ****" /> <copy file="${specunit.exe}" tofile=...

NAnt and dual platform build - best way to build on Windows AND Mono/Linux

I'm new to NAnt but have some experience with Ant and CruiseControl. What I want to do is have my SVN project include all tools needed (like NUnit and Mocks etc) so I can check out onto a fresh machine and build. This strategy is outlined by J.P Boodhoo here. So far so good if I only want to run on Windows, but I want to be able to che...

Automated Builds

I currently use subversion for my version control via AhnkSVN and Visual Studio. I recently started using Tree Surgeon to set up my projects. It creates a build script automatically using NAnt. I would like to be able to automate builds regularly projects within SVN. I like the idea of doing a build on every check in but nightly buil...

ncover with nunit2 task in NAnt

Is there any chance to get this work? I want my tests to be run by nunit2 task in NAnt. In addition I want to run NCover without running tests again. ...

How to run NUnit v2.4.8 tests with NAnt 0.86 beta ?

I tried recently to use NAnt (beta 0.86.2962.0) to run some unit tests compiled with the last stable version of NUnit (v2.4.8) without any success. The error I get is the following : [nunit2] Assembly "C:\Dev\MySample\bin\tests\My.Sample.Tests.dll" contains no tests. Of course, the assembly contains tests that I can run from any runn...

Best way to manage generated code in an automated build?

In my automated NAnt build we have a step that generates a lot of code off of the database (using SubSonic) and the code is separated into folders that match the schema name in the database. For example: /generated-code /dbo SomeTable.cs OtherTable.cs /abc Customer.cs Order.cs The schema names are there to isolate the generat...

How do I publish a Asp.net web application using MSBuild?

I am trying to publish an Asp.net MVC web application locally using the NAnt and MSBuild. This is what I am using for my NAnt target; <target name="publish-artifacts-to-build"> <msbuild project="my-solution.sln" target="Publish"> <property name="Configuration" value="debug" /> <property name="OutDir" value="builds\" /> ...

Nant <copy> and maintain directory structure

How do you use the nant <copy> command and maintain the directory structure? This is what I am doing, but it is copying all the files to a single directory. <copy todir="..\out"> <fileset> <includes name="..\src\PrecompiledWeb\**\*" /> </fileset> </copy> ...

Building Flex projects in ant/nant

We have a recurring problem at my company with build breaks in our Flex projects. The problem primarily occurs because the build that the developers do on their local machines is fundamentally different from the build that occurs on the build machine. The devs are building the projects using FlexBuilder/eclipse and the build machine is u...

How do I use Nant/Ant naming patterns?

I have to admit that I always forgot the syntactical intracacies of the naming patterns for Nant (eg. those used in filesets). The double asterisk/single asterisk stuff seems to be very forgettable in my mind. Can someone provide a definitive guide to the naming patterns? ...

Nant and changing file properties (read-only to writable)

As part of the Nant copy task, I would like to change the properties of the files in the target location. For instance make the files "read-write" from "read-only". How would I do this? ...

Is there a way to dynamically load a properties file in NAnt?

I want to load a different properties file based upon one variable. Basically, if doing a dev build use this properties file, if doing a test build use this other properties file, and if doing a production build use yet a third properties file. ...

Build setup project with NAnt

I've already got a NAnt build script that builds/runs tests/zips web project together, etc. but I'm working on a basic desktop application. How would I go about build the setup project using NAnt so I can include it with the build report on TeamCity. Edit: The setup is the basic Setup Project supplied with Visual Studio. It's for inte...