Hey everyone, I am running into a bit of a road block and
I would like to ask everyone’s advise on the best pattern for a
project. Here are the basics of the project: -
I have 1 “Business Logic DLL”
which must be built first -
I have 1 WinForm EXE which depends
on the Business Logic DLL -
I have 1 VS Setup Project which
depends on the top two items I have the first two components building independently, but
now that I want to come up with a clean total project build solution I am
having trouble. I have started down several roads and none seem very
clean. Here is what I want: -
A common project.include file that
sets up all my standard Project Properties -
A common project.include file that
has a common set of Targets (“Clean” and “Build”) that
always run when either the DLL or EXE Clean / Build targets are called. -
A way to include a common AssemblyInfo.CS
file in both the DLL & EXE -
Perhaps a way for the child .build
files to be aware of the parent. I started off with 3 build files and 1
.included file. The problems I have are: -
I can get the top most build file to
call the other build files, and the dependencies work… but there is no
way for the child projects to be aware of each other. Only the parent
knows what is best. -
My .include file has a Clean &
Build Target, as do my 2 child .build files – this leads to a “Duplicate”
target error. I would like to have a default set of tasks defined for all
Builds and all Clean calls anywhere in the tree. The main issue is that most of these problems appear to be
solvable with lots of copying and pasting. But I would like to avoid
that. I want as much common stuff in common files and I want the
including of those common files to be as easy as possible. (For example,
it would be nice if the .include file knew to add the AssemblyInfo.cs file as
part of all builds) Without me having to add it manually to all targets. I am working now on a very small project, but this is just a
test… a typical project for us will have lots of dependencies and
projects. So want to find a good pattern now. Thanks for your thoughts! Aaron Elder |
- [Nant-users] Best Pattern for... Aaron Elder
- RE: [Nant-users] Best Pa... Castro, Edwin Gabriel (Firing Systems Engr.)