nant

How to get the currently logged in windows user with NAnt

I have a NAnt script that does a build and deployment of an ASP.Net application. This lives on a remote machine that many people log into to perform builds. (this is not automated for various reasons that are irrelevant) Upon success or failure of the Nant script, I have an email being sent out to a team distribution list, stating that...

Learning NAnt - what does [+|-] in the help mean?

If I type nant -help I receive help information about the various command-line options. Some, such as find have a suffix of [+|-], e.g. -find[+|-] Search parent directories for build file What does the [+|-] mean? ...

Adding a comment to the file generated by an asminfo NAnt task

I am using the asminfo task in NAnt but would like to be able to include an explanatory comment in the generated file (to tell the uninitiated that the file was generated by NAnt, and what its purpose is). Is this possible? ...

Msiexec fails to run (command generated with NANT)

The following is used to generate an msiexec command with nant: > "<exec program="msiexec" > timeout="1800000" verbose="true"> > <arg line="/i &quot;${server.msi}&quot;" /> > <arg line="TARGETDIR=&quot;${server.target.path}&quot;" > /> > <arg line="INSTALLDIR=&quot;${server.target.path}&quot;" > /> > ...

Is it possible to set up TFS 2010 to do gated checkins but use NAnt as the build engine?

We are currently using TFS as our source code repository, but I prefer NAnt as my build engine over MSBuild. I was wondering if anyone knows if it is possible to use NAnt for the build engine but still get the benefits of having a TFS gated check-in build? ...

how to run 'color' command in NAnt script

I've just started using Nant for my builds and tests. I want to make it change the color (or background) of my command prompt text when it fails so its easily noticed. The command in command prompt on Windows is 'color 4' to change it to red and color 7 for back to white. How do I make this run in a build script, echo doesn't work, exe...

Easiest way to compile IronPython from the command line?

I've just started looking at IronPython, and I was hoping to build EXEs using NAnt. I'm not seeing much info on this... is it possible? Or, if not, is there a good alternative? ...

How can I retrieve only a subdirectory from a Mercurial Repository?

I'm trying to sell our group on using Mercurial as a source repository rather than VSS. In the process of updating our build scripts, I'm running into an issue trying to retrieve files from the Hg repository. Our builds are automated with NAnt and currently work for local builds or builds from VSS (ie, pull the source as needed from VSS...

Changing Framework Version for an IIS 7 Virtual Directory from the Command Line

Is there a programmatic way from the command line to change the .NET Framework version for a particular virtual directory in IIS 7.0? We're using the mkiisdir.exe tool from NAntContrib to create virtual directories, but we need to change the framework version to 4.0 for the newly created virtual directory. mkiisdir.exe doesn't appear t...

Asp.net Web Site build and Publish

How to build and publish the ASP.NET web site(Microsoft Vishul Studio->File->New->Website) using Cruise Control.net. Actually, ASP.NET Web site doesnot contain .csproj and .sln file. Please Provide the solution and Suggestion for same. Thanks in advance.... ...

Windows 7 permissions cruise control

Hi! I have cruise control with Nant running on windows 7 machine .Builds work just fine. But I have a task for which i need to start a batch process which opens up an application window (directX based application) and perform some tasks. But this nant task fails all the time , the very first call for device getdevicecaps fails .this t...

nAnt and nAntContrib

Hi I'm having problems building the nAntContrib library using the instructions provided. When running the build I get the following feedback C:\Code\trunk\tools\nAnt-Contrib>..\nant\nant-0.90\bin\nant.exe -D:nant.dir=C:\c ode\trunk\tools\nAnt\nant-0.90 -f:NantContrib.build NAnt 0.90 (Build 0.90.3780.0; release; 5/8/2010) Copyright (C) ...

TeamCity NUnit integration failing - Always getting "Could not locate the assembly nunit.framework..."!

Hi, I'm trying to get TeamCity to run NUnit tests as set up in an NAnt script as follows: <nunit2> <formatter type="Xml" usefile="true" extension=".xml" outputdir="${BuildArea.ReportsDir}" /> <test assemblyname="${BuildArea.OutputDir}\Common.Tests.dll" appconfig="s...

Nant refusing to use .Net 3.5

I am trying to use nant 0.90 with a visual studio 2008, .net 3.5 project. The nant script is being called by team city. Nothing too complex here. <?xml version="1.0"?> <project name="IPSA System" default="build" basedir="."> <property name="nant.settings.currentframework" value="net-3.5"/> <msbuild project="FS.IPSA.WebAdmin\FS.IPSA....

WIX 3.5 fails under NAnt but not under VS2010

Hi, I know this a is a common issue, but everything I can find in the forums seems to relate to 64bit framework incompatability (which is not an issue in my case). I have a set of simple WIX 3.5 installers developed using Votive that I can compile happily in VS2010, but when I try to compile them via NAnt (and MSBuild) on TeamCity (i....

Automatic Unit Testing with NANT and VS2008 during build process

I'm using VS2008 Pro and as such my c# project includes a bunch of Unit Tests written in the MS bundled unit test framework (sorry I have no idea what its official name is!). I would like to be able to run these unit tests as part of my build process. Is it possible to get Nant to automatically run these Unit tests during a build? ...

How to create a Visual Source Safe branch using NAnt

Summary I currently have a NAnt build script that performs a vssget on either the latest source code, or a specific branch (using a ${branch} parameter). Whenever we do a production build/deployment the code-tree that was built has a branch created, (so that we can continue development and still know what codebase is on production, pret...

Why won't my NAnt builds run in Hudson?

My NAnt builds run fine locally on a developer machine, and locally on the command line of the Hudson server, but they will not run in my configured Hudson project. The console output when I run a Build via the Hudson web UI is similar to the following : Started by user anonymous [workspace] $ sh -xe C:\WINDOWS\TEMP\hudson81043...

external file to hold msbuild tasks

I have created some ms build tasks for my VS project. Rather than having to update the VS Project file with each of the tasks, is it possible to create an external file to hold the build tasks and reference it via the main project file? Also, I have seen with nant, that you can create .bat file to run nant tasks. Is it possible to do s...

How to fix nAnt ASPPARSE type exists in both issue

Hello, When I use nAnt to build my app I get this error: [exec] error ASPPARSE: c:\temp\TheaterSalesOut\DemoSite\EmailInvoice.aspx(13): error CS0433: The type 'Controls_OrderView' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\ab87bc79\8d2820ab\App_Web_8z8vmqbs.dll' and 'c:\WINDOWS\Microsoft.N...