nant

NAnt script for C++ project build automation

Hi, Could anyone provide any example of NAnt script for C++ project build automation? Thanks! ...

Nant : change file permission

Hi ! I have an ASP.NET application. Basically the delivery process is this one : Nant builds the application and creates a zip file on the developer's computer with the application files without SVN folders and useless files. This file is delivered with a Nant script. The zip and nant files are copied to the client's computer the Nant...

Programmatically Creating a IIS6 Website/App Pool in Nant

Hi, I'm relatively new to Nant, what i'd like to do is have a task that creates a new Website and AppPool in IIS6 is there a way to do this in Nant? Essentially the task would need to set all the appropriate properties including the correct version of the .net Framework Ideally i'd also like to check if the site is already present in...

NAnt, MbUnit, CruiseControl, Selenium - passing settings to the test assembly

Hello, I am putting together some ideas for our automated testing platform and have been looking at Selenium for the test runner. I am wrapping the recorded Selenium C# scripts in an MbUnit test, which is being triggered via the MbUnit NAnt task. The Selenium test client is created as follows: selenium = new DefaultSelenium("host", 44...

Why is Nant not working with TeamCity?

I have nant set up to build my ASP.NET MVC project and it works fine locally. I add nant to a tools folder and add it to version control. TeamCity picks up my changes and starts the build but it fails. I believe I'm using the latest version of Nant and I have added the .net framework 3.5 to the nant.exe.config. What am I missing on t...

Automate SVN Adds Using NAnt

I want to automate SVN adds using NAnt. I want to add to SVN all new files in a given directory. The NAnt script will successfully execute the add command, however it displays the Tortoise SVN add dialog and this is not acceptable because it will execute on a build server running CruiseControl. The build server is running Windows Server ...

Nant - Get Newest Folder

Is there a relatively simple way in nant, without writing a custom task, to get the name of the newest folder in a certain directory? Recursion is not needed. I have been trying to do it with directory::get-creation-time and a foreach loop and if statements, yada yada. It's too complex, and I'm about to create a custom task instead. Ho...

Only one project of two running in my CruiseControl.net config.

I am creating an integration server for the first time, and although I have two projects in my cruisecontrol config file, only the first one seems to be executing. My config file is pasted below. <cruisecontrol> <project name="cc-config"> <triggers> <intervalTrigger seconds="60" /> </triggers> <sourcecontrol t...

NAnt and MSBuild command line woes

Hi, I'm trying to configure NAnt to automate my build process - once I've got this step nailed, I'll be integrating the unit tests. Perhaps I don't exactly know what I want, so please correct me if there is a completely different way of doing all of this... I want two NAnt targets, one to do quick, debug builds to make sure everything...

NAntContrib/NAnt mkiisdir fails on IIS 7.0 / windows 2008

I'm trying to use NAnt/NAntContrib build script to build a web application on Windows 2008 (IIS 7.0). In the build file, there is mkiisdir task, which fails with: [mkiisdir] The webservice at 'localhost' does not exist or is not reachable. All the documents/posts I found so far (non for w2k8, only Vista) say to install IIS 6 Compatibi...

How do I pass build number from Nant back to Cruise Control

I have a Nant build script which CruiseControl uses to build a solution on-demand. However, we only recently got CruiseControl so our official build number is different from what is listed in CruiseControl. I know CruiseControl injects some properties into build scripts so that I can access the CC build number in the script (CCNetLabel...

Build Via NAnt vs Visual Studio - One dll Missing

My solution includes these two projects: MyNamespace.Web.UI MyNamespace.Web.Core UI references Core, and Core references Foobar.dll, which exists nowhere except my library. When I build from Visual Studio 2008 Foobar.dll is in the UI project's Bin folder as expected. I have made certain it was not there before the build. But whe...

When will NAnt reach version 1.0

I like Nant very much. I do a lot of scripting with NAnt. It is a great little tool. Since NAnt is pre 1.0, when problems occur, I often think if that it is a problem with NAnt itself, but this is not always the case. One funny example: After running the oracle scripts I parsed the log output to make sure there was no problem. I was te...

How do I automatically fail a nant build if NDepend query raises a warning

OK first some background. I am busy automating our build process. We run a mixture of Vs 2005 and VS 2008 both targeting platform 2.0. We use Nant to do our builds using the MSBUILD task to do the compile and Cruise Control .net to do our CI. Currently we treat all warnings as errors, fail the build if any FxCop rules fail (except a s...

NAnt extension function, Project object

Is there a way to access the Project object from a NAnt extension function, as can be done from an extension task? In this example, I want to use the BaseDirectory property inside the Bar function: [FunctionSet("foo", "Foo")] public class FooFunctions : FunctionSetBase { public FooFunctions(Project project, PropertyDictionary properti...

Dealing with passwords in NAnt build script

Is there a way to prompt the user for input during a NAnt build? I want to execute a command that takes a password, but I don't want to put the password into the build script. ...

Ant -> Nant -> Visual Studio 2005 Build

I am working on a big C++ project. It is building using single Ant script which makes possible to compile the same source targeting more than one platform and compiler. But, I have to work only for Windows platform and Visual Studio 2005 C++ compiler. It would be really nice if I could write code and compile in Visual Studio, instead of...

Using osql with nant scripts

I am currently using osql with nant by calling a batch file with arguments. Here are the properties that are defined in my nant script (no, not real username/password values): <property name="project.config" value="debug" /> <property name="server" value="(local)" /> <property name="database" value="Test" /> <property name="username" va...

Registering assembly for COM interop from nant

Hi, I'm running msbuild from a nant script, the problem is that when it tries to register one of my assemblies for com interop, the script just stops, like it's stuck. If I run regasm.exe on the assembly it succeeds. Even if I run msbuild itself from the command-line, with the exact same parameters, it builds successfully. Any ideas o...

Using Microsoft Virtual Server from C#: CoSetProxyBlanket does nothing.

I'm attempting to write a couple of NAnt tasks for interacting with Microsoft Virtual Server 2005 R2 SP1, and I've lifted the code found on "Virtual PC Guy's WebLog", in the "Controlling Virtual Server through PowerShell" post. It doesn't work: I always get a failure when calling CreateVirtualMachine: System.Runtime.InteropServices.COM...