nant

Why are my output file sizes different when using CSC.EXE vs. Devenv?

I am playing with Nant and CSC. I notice that a debug version of my dll is 140k if compiled via CSC and nant build scripts. However if i build a debug version in the Visual Studio env, it is at 203k!? the smaller DLL DOES appear to work fine in the main program however. Any ideas? ...

Regarding encrypting web.config using nant

Hi guys, I have a question that can we run commadnline: aspnet_regiis -pc "DRMBasic" -exp using nant build script. I was trying the following line of code. but somehow this command can't run because the path is c:\windows\microsoft.net\framework\v2.0.50727 to run the above aspnet_regiis. I can also get the framework path. but what to d...

Why does processing multiple individual targets take longer when Nant is directed to process them from a single target?

I have a nant build script that specifies the compilation of various Visual Studio solution files. <target name="compile.solution1" description="Compiles solution 1"> <msbuild project="${src.dir}\Solution1.sln" verbosity="${build.verbosity}"> <property name="Configuration" value="${build.config}" /> <property name="OutputPath" val...

How to build a .NET website using Nant

I usually use web applications in Visual Studio and the MSBUILD taks in Nant builds them without any problems: <msbuild project="MySolution.sln"> arg value="/property:Configuration=release" /> </msbuild> I now have a website (not a web application) in a VS Solution and it won't build - I get a lot of namespace errors. Should I be a...

How to make a copy of an existing config file using nant

Hi, I was wondering if there is any way to make a copy of an existing web.config file(rename the newly created file) with the nant build. ...

How to display target task times in CruiseControl.NET?

I have a CruiseControl.NET configured project and would like to find out how long each task took to be completed. My cconfig.net looks like this: <targetList> <target>compile</target> <target>test</target> <target>pack</target> <target>send</target> <target>twitterify</target> </targetList> And how now for gods sa...

Is it possible to override nant targets from included buildfile?

I have a generic common.xml file that holds a number of generic nant targets that are re-used among multiple builds. What I want to do is 'override' some of these nant targets and include additional steps either before or after the existing target is executed. Are nant targets used from the current file first? ie. If i create a nant tar...

Nant output problem when viewing via cc.net

When viewing nant buildresults in CC.Net the output doesn't have any line breaks and is very difficult to read. ie: <buildresults project=""><message level="Info"><![CDATA[Buildfile: file:///D:/Builds/MyProject/Working/Root/BuildScripts/MyProject.build]]></message><message level="Info"><![CDATA[Target framework: Microsoft .NET Framework...

A newer version of XCopy.zip exists on the server error

Hi guys, I am getting this error while using nant(Cruise control.net). It is not updating the Release copy when ever im trying to use NANT for build. Urgent help required ...

forced checkin or checkout using NANT

Hi guys, I was wondering if there is anyway that NANT would do a force checkout from source control or force checkin even if there is newver version in source control. Urgent help required ...

Debugging Nant Build scripts in VS 2005

HI, We are using NANT build scripts in our project. The scenario is as follows, In my Application I create an application( this is basically UI based, the user drags, drops widgets etc, these are stored as xml internally). then while I say Build application, we use NANT scripts to call XSLT transform, I do not know if it is possible to...

How can I target .Net 4.0 Beta using NAnt?

I want to start testing my project using the Microsoft .Net 4.0 Beta version that has already been released. I know that adding a "net-4.0" target framework to NAnt requires updating nant.exe.config file, does anyone know what are the necessary changes? ...

MSBuild vs. NAnt for a mixed 2005 and 2003 codebase

We are currently maintaining a huge code base with hundreds of *.proj and perhaps 50 solutions with interconnected dependencies. All of our code base is either .net or legacy C++. Are current build process is a nested command line script that does automated source control pulling and then builds each solution in turn by calling devenv....

NANT Build Scripts If Condition,

Hi, I have a query regarding Nant build scripts, I am fairly new to NANT build, In case I want to run a style bases on some condition in an xml file say count(${skinFolder}/screens.temp.xml//ActionCollection/Item) > 0 is there a way to achieve this ?? thanks in advance, Sidhartha ...

How to delete network executable files in use during NAnt Build

Related: How to force delete a file? I have a NAnt script that does a full build and deployment to our Dev environment. Deploying the C#.Net Win exe and its used DLLs involves moving them to a network location, where our testers and other developers run them. <copy todir="${dest.dir}" overwrite="true" failonerror="false" > ...

Signing an assembly with Nant

How do I automatically add a strong name to a .NET assembly using a nant task? ...

NAnt foreach loop folders recursive

Hi, Does anybody know how I could create a recursive loop with NAnt? I need to loop through all of my folders and upload the files to our webserver. I am using this NAnt ftp task (http://www.spinthemoose.com/~ftptask), however it doesn't seem to upload the entire directory. It uploads only the mentioned files in my put element. Thanks...

nant exclude folder

Hi, I am looping though my folders and need to exclude the svn folders. I thought I could simply add the exclude element, though that doesnt seem to work. <foreach item="Folder" property="foldername"> <in> <items> <include name="YOUR_FOLDER\**" /> <exlcude name="YOUR_FOLDER\**/_svn" /> ...

Nant Task For IlMerge 2.9.210.0

Anyone know where I can get a Nant task for ILMerge 2.9.210? I have tried this http://code.google.com/p/ilmerge-tasks/ but it is built against ILMerge 2.0.7.28 of ILMerge. It says that the new project is at ilmerge.xpdm.us (sorry new user, can't post 2 hyperlinks) but that link doesn't seem to work for me. Anyone got any other ideas? ...

nant - how to check the user has write access to a particular folder

*I want to test the script have access to a particular file share using nant. so i started checking this by doing a simple file copy on to that share. this worked fine, but when the share do not have write permissions , script is crashing even though i have try catch because of System.UnauthorizedAccessException: Access to the path '\m...