473,378 Members | 1,391 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Off Topic : NAnt build automation question

I am a NANT newbie. I would like to use NAnt to automate my build
processes - but have come unstuck early on in the process.

I have several projects under a /src directory. There is some
inter-dependencies between some projects.

I want to have to have two build scripts as ff:

1). one main build file (say /src/main.build).
2). A single build file for each project ( say /src/project1/project1.build)

The main build file will traverse each of the folders under the /src/*
directority, and execute any *.build it encounters in the directory.
(i.e the individual build projects)

My questions are:

1). How can I create a main.build which will traverse a directory from a
specified base, and execute each of the .build files it encounters?

2). How can I specify in a project - a depency on another project?
Thks

May 7 '06 #1
1 1372
Bit byte,

Are you using .NET 2.0? The reason I ask is because if you are, you
might want to look into MSBuild, as it is better integrated into VS.NET
(VS.NET uses MSBuild for building projects now, and it is completely
customizable).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Bit byte" <fl**@flop.com> wrote in message
news:i9********************@bt.com...
I am a NANT newbie. I would like to use NAnt to automate my build
processes - but have come unstuck early on in the process.

I have several projects under a /src directory. There is some
inter-dependencies between some projects.

I want to have to have two build scripts as ff:

1). one main build file (say /src/main.build).
2). A single build file for each project ( say
/src/project1/project1.build)

The main build file will traverse each of the folders under the /src/*
directority, and execute any *.build it encounters in the directory. (i.e
the individual build projects)

My questions are:

1). How can I create a main.build which will traverse a directory from a
specified base, and execute each of the .build files it encounters?

2). How can I specify in a project - a depency on another project?
Thks

May 7 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: hoochiegooch | last post by:
Hi, all. I have a couple of questions about NAnt. 1. Is there a better way to invoke NAnt from a C# "Master Test Rig" than shelling out? IOW, how should an ASP.NET web app or Windows Service...
1
by: Nigel Currie | last post by:
Hi all, I'm having a problem with <nant> tasks to build sub-projects into an overall solution. I have the following directory structure: JobManagerSolution |_ | JobManager |_...
2
by: HaukiDog | last post by:
Hi, I am trying to set up my C# web project to be compiled by NANT. Everything compiles and works fine within the IDE. I have a created a NANT build file which has a simple project tag, like...
3
by: prabhupr | last post by:
Hi Folks Not sure if this is the right group, if not please re-direct me to the right one. Here is my question =============== When I compile my ASP.NET WEB project from VS 2005 (.NET...
1
by: Bit byte | last post by:
I am a NANT newbie. I would like to use NAnt to automate my build processes - but have come unstuck early on in the process. I have several projects under a /src directory. There is some...
4
by: SenthilVel | last post by:
Hi I am in a conversion project of Code from .Net 1.1 -->.Net 2.0 . 1. I am going to build all my projects with NAnt RC4 version and also with VS2005 to check the affected Areas. 2. I have...
3
by: con.brady | last post by:
Hi Folks, Disclaimer: I apologize if this is the wrong place for this type of question, but if so, I don't know where the right place is and I'd be very grateful if someone could point me in...
0
by: james.mcdonagh | last post by:
Hi I am a newbie using nAnt for .net 2.0. As such I have not come across this bug before, and I would be happy of any help that you may be able to provide. In order to help I have included the...
1
by: jamesmcdonagh | last post by:
Hi newbie using nAnt for .net 2.0. I would be happy of any help that you may be able to provide. The weird thing is that VS.net builds without a problem. And the intellisense within the object...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.