473,396 Members | 2,090 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,396 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 1072
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...
12
by: michael sorens | last post by:
So I have compiled a .dll file from a Visual Studio 2005 project containing a few dozen c# files. Now I want to automate this build using ant (have not yet looked at nant, but the rest of my...
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...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.