Ian,
But the config file won't let you discover the
location and availability of runtimes. You also need to be able to have
the task behave differently within the same buildfile. It's no use being
able to define which framewokcompiler directory the csc task should use in a
config file, because it would have to be different when you compile the .NET
Framework 1.0 and 1.1 versions in the same buildfile, and in the same
run.
I don't think it make sense to store these runtime
configuration in a configuration file. What does make sense is, to allow
users to specify additional runtimes in the configuration file. That means
you'd the internal collection of available runtimes first filled wih the
runtimes we know about, and that we can automatically retrieve information about
(using the registry) and next, add other runtimes from the information in the
configuration file.
I would perfer discovering runtimes automatically
when possible, than to store these in the configuration file.
But a combination of both, seems very powerful
!
But we really should be able to specify the runtime
configuration on both the project (the default runtime) and task level, by
adding an additional attribute. It's no use having to set both directory
locations, compiler names and other setting for every task. This would
really complicate the buildfile a lot. Setting an attribute indicating the
runtime environment identifier (and thereby automatically getting the right
directories, compiler names, ....) is definitely the way to go.
Again, just my 2 cents
Gert
----- Original Message -----
|
Title: Message
- [Nant-users] multiple runtime support Gert Driesen
- [Nant-users] RE: [nant-dev] multiple runtime support Ian MacLean
- Gert Driesen