Thanks for the hint on where to look! I had to change two settings in NAnt.Console.exe.config as follows to get it to work:
<nantsettings defaultframework="net-1.1" taskpath=".\optional"> And reverse the order of the supportedRuntimes: <startup> <supportedRuntime version="v1.1.4322" /> <supportedRuntime version="v1.0.3705" /> </startup> Both changes were required to make it happy. I'm much more felicitous not having to install 1.0. Glee! [I concur with whoever it was that suggested that the supportedRuntime elements should be reversed everywhere they are, to list 'em in reverse sequential order. I wind up having to change it in Nant.exe.config anyway.] > -----Original Message----- > From: Ian MacLean [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 11, 2003 9:27 PM > To: David Reed > Cc: [EMAIL PROTECTED] > Subject: Re: [nant-dev] Framework 1.0 dependency in ConsoleStub.cs > > hmm - looks like the -k option is failing for some reason. the > -k:net-1.1 paramater should force it to use 1.1 for the tests. Changing > the default framework setting in NAnt.Console.exe.config in > nant\src\NAnt.Console will fix it but thats not a good long term fix. > I'll take a look and see if I can work out why -k isn't working properly. > > > Ian > > > I do not have the 1.0 Framework installed on our build server, since > > we do not target 1.0 now for any reason (it vanished off the > > production systems moons ago)... which means I can't build the vanilla > > 0.8.3 script on that machina, I guess. FYI, reversing the order of > > the supportedRuntimes did not change the failure; removing the 1.0 > > element from supportedRuntimes did not change the failure. I think > > this was the reason I had to remove the test targets from the first > > version of NAnt I built what seems like so long ago. ;) Trying to > > decide whether to doctor the build script or go off to see the wizard > > of installing obsolete software... > > > > > > > > ----- snip ----- > > > > > > > > test: > > > > > > > > [echo] Running unit tests with just built version of NAnt. > > > > [exec] > > C:\Sandbox\NAnt-0.8.3.50105/build/nant-0.8.3.50105-debug/bin/NAnt.ex > > > > e -buildfile:NAnt.build debug self-test > > -D:project.version=0.8.3.50105 -k:net-1 > > > > .1 > > > > > > > > Unhandled Exception: > > System.Configuration.ConfigurationException: Er > > > > ror loading XML file > > c:\windows\microsoft.net\framework\v1.0.3705\Config\machine > > > > .config Request for the permission of type > > System.Security.Permissions.StrongNam > > > > eIdentityPermission, mscorlib, Version=1.0.3300.0, Culture=neutral, > > PublicKeyTok > > > > en=b77a5c561934e089 failed. > > (c:\windows\microsoft.net\framework\v1.0.3705\Config > > > > \machine.config) > > > > at > > System.Configuration.ConfigurationRecord.OpenXmlTextReader(Str > > > > ing configFileName) > > > > at System.Configuration.ConfigurationRecord.Load(String > > filename) > > > > > > > > at > > System.Configuration.DefaultConfigurationSystem.System.Configu > > > > ration.IConfigurationSystem.Init() > > > > at > > System.Configuration.ConfigurationSettings.SetConfigurationSys > > > > tem(IConfigurationSystem configSystem) > > > > at > > System.Configuration.ConfigurationSettings.GetConfig(String se > > > > ctionName) > > > > at > > System.Configuration.ConfigurationSettings.get_AppSettings() > > > > at NAnt.Console.ConsoleStub.Main(String[] args) in > > c:\Program Fil > > > > es\NAnt-0.8.3.50105\src\NAnt.Console\ConsoleStub.cs:line 44 > > > > Total time: 6 seconds. > > > > > > > > BUILD FAILED > > > > > > > > C:\Sandbox\NAnt-0.8.3.50105\NAnt.build(120,10): > > > > External Program Failed: > > C:\Sandbox\NAnt-0.8.3.50105/build/nant-0.8.3.50105-deb > > > > ug/bin/NAnt.exe (return code was -532459699) > > > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers