|
Hi Scott,
We're currently moving to a Nant based build
process for log4net, and we don't want to distribute our own version of
NAnt. We just want to be able to tell developers and users
to download version X of nant to build log4net.
We need this information in the default
configuration file, because we need nant to run using the .NET Framework 1.1
(final beta). For log4net, we will distribute 3 runtime versions of
log4net : one built for .NET Framework 1.0, one for .NET Framework 1.1 and one
for .NET Compact Framework 1.0.
We accomplish this by having nant run using the
.NET Framework 1.1. By doing this it uses the .NET Framework 1.1 C#
compiler (which we need to build the .NET Framework 1.1 version and for the .NET
Compact Framework 1.0 version of log4net). To build the .NET Framework 1.0
version of nant, we include the .NET 1.0 C# compiler in the path and set the
"doNotFind.dotnet.exes" property to true before we build the .NET Framework 1.0
version, and set it to false after that version of log4net is built. And
it works fine, but I would prefer to consider nant as a black box, and not
change anything to its configuration files.
I've been running nant on the .NET Framework 1.1
final beta for some time now and everything seems to work just
fine.
If you have no <supportedRuntime> element
configured, nant will use the runtime with which it was built (which is .NET
Framework 1.0). When both the .NET Framework 1.0 and 1.1 are installed,
nant will run on the .NET Framework 1.0. When only the .NET Framework 1.1
is installed, it will use that runtime version.
By adding the configuration information I
mentioned, you just allow nant to run using the .NET Framework 1.1 version when
both .NET Framework 1.0 and 1.1 are installed.
I hope I explained it well, sorry if my english
isn't always that good.
Are you planning on eventually releasing two
runtime versions of nant ? what about the libraries you're currently using
(SharpZipLib, NUnit, NDoc), do they have plans in this direction ? I
learned from Mike Krueger (who built SharpZipLib) that he probably won't release
a separate distribution for SharpZipLib in the future, it will just be part of
#Develop. I regret this, but I understand his motive (not
enough time).
Does everyone agree with adding this section
to the configuration file ?
Thanks,
Gert
|
- [nant-dev] Adding .NET Framework 1.1 as supported runtime ... Gert Driesen
- Re: [nant-dev] Adding .NET Framework 1.1 as supported... Scott Hernandez
- Gert Driesen
