nant

NAnt and VS2008 (.NET 3.5) - Solution format of file Solution.sln is not supported

I'm trying to get NAnt 0.86b1 running with VS2008 SP1 and x64 XP. I have a basic build file (below) which gives the error Solution format of file 'Solution.sln' is not supported. <property name="nant.settings.currentframework" value="net-3.5" /> <target name="build" description="Full Rebuild" depends="clean,compile" /> <target n...

nant logs with data and time stamp

how to run nant script in command line and get the timings of each task on the log file. using nant task or NAnt -buildfile:testscript.build testnanttarget this produces console output but i cant see any timing information. all i wanted is on each log message if nant prefixes datatime that will help me a lot. i know nant uses log4n...

namespaces and specific xpath

Hi, Can anyone tell me how can I get the xpath of the name attribute from this file: <asmv1:assembly xmlns:asmv1="urn:schemas-microsoft-com:asm.v1"> <assemblyIdentity name="MyName"/> </asmv1:assembly> I'm trying to get it for nant xmlpoke task without success. Thanks. ...

How to bootstrap NAnt environment from an existing solution (.sln)

I have a Visual Studio 2005 solution (.sln) with a mix of .NET and C++ projects. What is the best way to generate the .build file I will need to run my build process with NAnt. I'm new to using NAnt, and I'm not sure how to set it up. Will I have to update the .build file manually every time there is a new source file in any of the proje...

How to use Nant/TeamCity to Deploy across DMZ?

I have build server inside our domain (and it needs to be because it also talks to other boxes in the domain), and a webserver that is in the DMZ. As part of our build scripts, I would like to deploy websites to the webserver in the DMZ, using the Nant copy task. The problem is, that Nant is invoked from TeamCity which runs under the S...

Is Nant dead?

Looking at the Nant and Nantcontrib repositories at Sourceforge I noticed that the last release of Nant is from December 7th 2007 and the latest release of Nantcontrib is from October 15th 2006! So, is it looks like the development of these tools has stalled for a while. Is anyone still working on those tools? Is it smart to invest my...

OpenOffice command line PDF creation

I have some documentation written in OpenOffice, now I would like to include some of it as PDF files in the final build deliveries. Now I would like to do this with the automated build script. Is there a way to create a PDF file from OpenOffice with a command line command? ...

Add attribute to an xml node with nant

Hi, Is there a way to add an attribute to an xml node (which I have the xpath of) using nant? Tried xmlpoke but it looks like it can only update existing attributes. thanks. ...

mutex lock in Nant

How do i implement Mutex lock in Nant, the reason why i need this feature is because i register COM components in order to get my build working , and then end of the build i Un Register the COM components. without mutex lock, different version of COM are registered and face some issues. so it would be better if we apply mutex lock i...

Using NAnt to build .NET 2.0 projects

I had a .NET 1.1 project, which I built in NAnt using the following snippet: <property name="Refs.dir" value="Refs" readonly="false"/> <property name="OAIDLLs.dir" value="OAI\bin\ServerDebug"/> <solution solutionfile="OAI\CC.OAI.sln" configuration="ServerDebug" outputdir="${OAIDLLs.dir}"> <assemblyfolders> <includ...

NAnt/NAntContrib 'VB6' failed to start on remote build

Background I'm putting together a Continuous Integration system at work on two VMs running on my local desktop. VM #1 (Toolbox) is running CruiseControl.Net, Subversion, BugTracker.Net and SQL Server Express. VM #2 (BuildMaster) is running NAnt with NAntContrib and has VB 6.0 and the 1.0/1.1/2.0/3.5 .Net Framework SDKs installed. The in...

Why won't TeamCity run my Nant build file?

I have a simple NAnt build file, which attempts to perform an update from subversion on the specified directory. An example of the test build file content is: <?xml version="1.0" ?> <project name="Project_name" default="update"> <property name="root" value="C:\Subversion\UpdateDir" overwrite="false"/> <property name="build.repos" value=...

Nant on Windows Vista 64

Hi I was wondering if anyone has successfully ran Nant on Windows Vista 64 bit version. It keeps failing with set-props: [sysinfo] Setting system information properties under sys.* BUILD FAILED Property name 'sys.env.CommonProgramFiles(x86)' is invalid. Thanks. ...

How do I determine what target is calling my current target in Nant?

I'm not even sure if my question is worded right...but I'll try to explain what I'm struggling with at the moment. I'm not highly experienced with this so forgive me if my explanations aren't the best....and I'm also trying to simplify my build script for the purposes of this question so if I'm missing some detail let me know... I am mo...

Automated Build Tool With Managed C++ (.NET 2.0)

I'm laying the groundwork for an automated build process and am trying to make sure I start down the right path. Our codebase is a mixture of Managed/Unmanaged C++. The managed part is in .NET 2.0 and all of the projects are part of a Visual Studio 2005 solution. Right now I'm looking at NAnt, but I can't figure out how to perform a bui...

How do you use nAnt to copy files to a non-domain machine

I have a nAnt script that works perfectly to build and copy a website to another domain machine. However, when I try to copy the website to a machine not on the domain I get security errors. I know it's because the user that I have set to run nAnt doesn't have permissions on the remote computer. Is it possible to specify a remote use...

How to get a recursive svn blame report in a single xml file for all non-binary files in a branch?

How can I get a fully recursive svn blame report for all non-binary files in a branch, where the output is in a single file in xml format and includes revision, date, author, filename & path, and the text of the line of the file itself? The entire output needs to be in a single file. It will be executed as part of the build via a CCNet...

VBC + NAnt. Error compiling WinForm

It should first be noted that I am trying to avoid rewriting all my scripts to use msbuild. I have noticed that there are several problems when using NAnt with the VBC task and compiling a WinForms application. The main problem seems to be that VBC can't find Sub Main. This is odd, since from within VS, there is no indication that the...

How do I get NAnt to use the new VB9 compiler for .NET 2.0 applications?

How do I tell NAnt to use the same VB compiler VS2008 uses when it creates .NET 2.0-targeting applications? I have switched a web application to VS2008 back-targetted to .NET 2.0. I can run NAnt (0.85rc4, 0.85, and 0.86b1) just fine once I do this. When I try to use some of the VB9 syntax, that still compiles just fine back to a .NET 2....

Building the platform code with nant and VS2008

I'm using the latest nightly build, VS2008 prof trial and .NET 3.5 and I'm getting this error "Solution format of file 'C:\test\Project\src\project.sln' is not supported." Any Solution to overcome from it ...