From: Gert D. <dri...@us...> - 2007-04-17 07:54:21
|
Update of /cvsroot/nant/nant/src/NAnt.NUnit/NUnit2 In directory sc8-pr-cvs16:/tmp/cvs-serv931 Modified Files: NUnit2TestDomain.cs Log Message: Set ConfigurationFile even if it doesn't exist. Index: NUnit2TestDomain.cs =================================================================== RCS file: /cvsroot/nant/nant/src/NAnt.NUnit/NUnit2/NUnit2TestDomain.cs,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** NUnit2TestDomain.cs 23 Sep 2006 13:47:32 -0000 1.27 --- NUnit2TestDomain.cs 17 Apr 2007 07:54:15 -0000 1.28 *************** *** 114,134 **** AppDomainSetup domSetup = new AppDomainSetup(); domSetup.ApplicationBase = basedir.FullName; // use explicitly specified configuration file, or fall back to // configuration file for given assembly file - string configurationFile = null; if (configFile != null) { ! configurationFile = configFile.FullName; } else { ! configurationFile = assemblyFile.FullName + ".config"; } - // only set configuration file if it actually exists - if (File.Exists(configurationFile)) { - domSetup.ConfigurationFile = configurationFile; - } - - domSetup.ApplicationName = "NAnt NUnit Remote Domain"; - return AppDomain.CreateDomain( domSetup.ApplicationName, --- 114,127 ---- AppDomainSetup domSetup = new AppDomainSetup(); domSetup.ApplicationBase = basedir.FullName; + domSetup.ApplicationName = "NAnt NUnit Remote Domain"; // use explicitly specified configuration file, or fall back to // configuration file for given assembly file if (configFile != null) { ! domSetup.ConfigurationFile = configFile.FullName; } else { ! domSetup.ConfigurationFile = assemblyFile.FullName + ".config"; } return AppDomain.CreateDomain( domSetup.ApplicationName, |