Question on building a number of components that dependent on each other

  • Thread starter Thread starter Darren
  • Start date Start date
D

Darren

I have a solution that has a number of projects. Each project
generates a component and each component depends on a number of other
components. What is the best way of managing this dependency so when I
build my solution it will build the components in the correct order?

I see a number of options:
1. To use the Project Dependency screen to set the dependencies and
therefore the build order. I assume the programmer has to set this up
and the IDE won't auto determine this based on the references. I don't
like this because I have 50 components and each one depends on 10 or
more other components (It's not my system but I'm here to fix it).

2. To write a batch file that will build the components in the order
that's determined by me.

I'm keen on the 2nd option. What is the best way to manage this? (Over
time I'm going to be reducing the components down to a managable
level).

Thanks in advance,
Darren.
 
Hi Darren:

Instead of a batch file you might consider Nant:
http://nant.sourceforge.net/

If the reference to another assembly is made through Project -> Add
Reference -> Projects tab, those dependencies are automatically put in
by the IDE - but it sounds a bit late for that.
 
Back
Top