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
 
 
----- Original Message -----
Sent: Sunday, February 23, 2003 10:41 AM
Subject: Re: [nant-dev] Adding .NET Framework 1.1 as supported runtime ?

Hey Gert,
 
Isn't this something you can change on your local installation?
 
I assume you want us to change the default config file to allow this for our distributions. I'm fine with that, but I haven't tested it. Does everything work under the 1.1 final beta (and/or release)?
 
If there is no configuration/startup/supportedRuntime settings does it allow versions other than the one targeted in the assemblies? (I would have guessed that it would allow any runtime version.)
 
Is this lack of configuration data causing you any problem in running NAnt?
----- Original Message -----
Sent: Sunday, February 23, 2003 12:04 AM
Subject: [nant-dev] Adding .NET Framework 1.1 as supported runtime ?

Hi,
 
Would it be possible to change the NAnt.console.exe.config (in src/NAnt.Console), to allow it to run on the .NET Framework 1.1 runtime when both .NET Framework 1.0 and 1.1 are available on a system ?
 
To accomplish this, the following should be added the config file :
 
<configuration>
    ......
 
  <startup>
        <supportedRuntime version="v1.1.4322" />
        <supportedRuntime version="v1.0.3705" />
   </startup>

    .....
</configuration>
 
This would allow NAnt to run on the .NET Framework 1.1 Final Beta runtime, instead of .NET Framework 1.0 when both are available on a system.
 
Note: NAnt will still be able to run on the .NET Framework 1.0
 
Can someone do this (or should I supply a patch ?) or do we need to discuss this furher ?
 
Thanks
 
Gert

Reply via email to