nant

Tool for Merging Database Scripts

Hey all, I'm wondering if anyone has ever used a tool which will take a series of .sql scripts and a manifest file of some sort and merge them into one big .sql file according to the order defined in the manifest? I'm trying to integrate database change packaging into our automated build and I could write a tool for this but I figured ...

Can TeamCity's .NET NUnitaddin process csproj files?

To cut to the chase, can the TeamCity .NET NUnitLauncher process Microsoft csproj files? I ask this question because of the following. I have a NANT build script. In this script I have a number of tests which use nunit-console.exe (which ships with NUnit v2.5.2). An example of a test in my Nant build file is: <target name="x.Commons....

NAnt build c# project with Linq to SQL Classes

I'm in the midst, after many hours of researching how to automate the build process, writing a nAnt build script for a project that works with COM interop (not by choice... just the only way to integrate with the host package). I'm trying to figure out, one of my dll's happens to contain a Linq to SQL class in it, and I'd like to, if at...

Nant, SqlCmd -v switch and spaces in nant property fails build with invalid argument

I have a nant script that ... 1. takes the content of disc-file 2. assigns that content to a nant property 3. and then calls sqlcmd with a -v passing in that property containg the content of the disc file 4. inside the sql script the contents of the file should be used by a stored proc. The problem is that when the content of the file ...

Nant reading file in reverse order

Hi All, I have a text file. I need to read the content of the file from the reverse order (from EOF). Please let me know how I can achieve it using Nant script. Thanks, Priya.R ...

building .net applications without Visual Studio

I'm interested to hear about people working with building .net applications using MSBuild, NAnt or similar tools. What are you using, why are you using it instead of the VS IDE? I like to use different editors quite a bit and I'm thinking of changing over to using something that can keep me IDE free. Thanks! ...

Build Process - What to use?

I'm considering writing my own delivery code using PowerShell and/or C#, maybe shelling to NAnt or MSBuild. Why should I not go this way? Is this such a really hard endeavor compared to using NAnt or MSBuild? Any good, modern book that can help? Any better ideas? Background (P.S. This is a religious issue for some. No insult inten...

TeamCity NUnit test result visualisation

Hi, Is there any way to produce visual results of NUnit tests from within TeamCity's "Tests" tab, currently my NAnt script outputs an .xml file of the results using the following task: <nunit2 haltonfailure="false" failonerror="false" verbose="true"> <formatter type="Xml" extension=".xml" outputdir="${tests.output.dir}" usefile="true...

Running NUnit Tests in parallell using NANT

Hi, We have different categories of tests under various assemblies. What is the best possible way to run them in parallel? I am aware of a task in ant, is there any such task in NANT? Kind regards, ...

Gallio and MbUnit in NAnt

I am trying to use Gallio (v3.1)/MbUnit/NCover to run a unit test in my C# code, as part of the build process for my continuous integration system. I can get Gallio.Echo.exe to execute the tests and output an XML file (albeit it does seem to be checking all .dll files in the folder == approx. 6.5MB .xml file!!), but when I try to get NC...

Accessing CruiseControl.NET project name in NAnt

CCNet passes the current build label to NAnt via the NAnt property "CCNetLabel". Is there a similar property where it passes the name of the CCNet project name? ...

What are solid NMaven or build servers for .NET alternatives?

Maven had a long history and is well supported in the Java world. NMaven has received a less successful start and has never become as popular in the C#/.NET world as its larger cousin was in the Java world. The project seems close to dead(ish), but maybe I'm wrong. Are there alternatives that, preferably using NAnt, are commonly used in...

How to compile VB 2005 code containing "default instances" using nant

I've got some VB code that's using a default instance of a Form. It compiles fine within VS but when I try compiling using the nant vbc task it throws this error, error BC30469: Reference to a non-shared member requires an object reference. Here's the relevant section of my nant script, <vbc target="exe" output="${basename}.ex...

nAnt Deleting files older than 7 days old

I would like to create a target that cleans log files older than 7 days old in a specific folder. I get an error when I try to put in a "date" element inside a fileset. How can I go about this? <delete> fileset basedir="${StageIISRoot}/MySite/App_Data/ErrorLog"> <date datetime="${datetime::now() - timespan::from-days(7)}" when=...

Help in building nhibernate from source

I downloaded nant 0.86 beta which seems to be the latest release. Now running: nant default.build I get this error: detected nant 0.86 beta 1, consider upgrading to a newer version when building for .net 3.5 default.build does not exist in this project What am I doing wrong here? Update downloaded the nighly build, now running: na...

Is NAnt still being actively developed?

Is NAnt still being actively developed, or are there other projects that are gaining more momentum in the Automated Build space? Edit: Obviously MSBuild will continue to advance but given all the extra tasks that can be accomplished using NAnt why has development suddenly stopped given that many open source and I assume commercial appl...

Visual studio 2008 & nant , msbuild how we use this for automate? Is nant work for vs2008?

I am working on a windows as well as web projects. We currently use Visual Studio to build our solution using visual studio 2008. I would like to move to a more powerful build system such as Nant or MsBuild for atomate. What are the ways & how i do this? Currntly we use Visual source safe & mercurial(hg) as source control How does thi...

Setting write permissions on godaddy hosting.

I have godaddy asp.net hosting. Every time I upload the build, it’s a manual laborious task of setting write permissions(to folders) through the web interface. Is this something I can automate? Are there any nant /script tasks with which can do this? ...

How to use hyphen in the Nant properties

Hi, I would like to use "en Dash"(unicode value=8211) in one of my property in the NAnt script. When i use that property the unicode value that is returning for the en dash character is HYPHEN( value=45) but not the value corrusponding to the En Dash( which is 8211).The script i am running will check for these characters. So it shoul...

Create directory using Nant

Not sure if I'm just totally missing it but I couldn't not figure out how to create a new directory using Nant. Is there built in functionality to do this? Can I just use the command prompt? I tried something along the lines of: <exec program="cmd" commandline="md c:\test" /> but it just opened up a command prompt on the screen and ...