Supportng overrides for package BasePath and PrivateBinPath in console

This commit is contained in:
Simone Busoli 2012-10-16 03:45:58 +02:00
Родитель d11720568f
Коммит 50508eb421
2 изменённых файлов: 20 добавлений и 4 удалений

Просмотреть файл

@ -73,7 +73,13 @@ namespace NUnit.ConsoleRunner
public bool noshadow;
[Option (Description = "Disable use of a separate thread for tests")]
public bool nothread;
public bool nothread;
[Option(Description = "Base path to be used when loading the assemblies")]
public string basepath;
[Option(Description = "Additional directories to be probed when loading assemblies, separated by semicolons")]
public string privatebinpath;
[Option(Description = "Set timeout for each test case in milliseconds")]
public int timeout;

Просмотреть файл

@ -311,6 +311,17 @@ namespace NUnit.ConsoleRunner
domainUsage = DomainUsage.Multiple;
}
if (options.basepath != null && options.basepath != string.Empty)
{
package.BasePath = options.basepath;
}
if (options.privatebinpath != null && options.privatebinpath != string.Empty)
{
package.AutoBinPath = false;
package.PrivateBinPath = options.privatebinpath;
}
#if CLR_2_0 || CLR_4_0
if (options.framework != null)
framework = RuntimeFramework.Parse(options.framework);
@ -326,10 +337,9 @@ namespace NUnit.ConsoleRunner
package.Settings["ProcessModel"] = processModel;
package.Settings["DomainUsage"] = domainUsage;
if (framework != null)
package.Settings["RuntimeFramework"] = framework;
if (framework != null)
package.Settings["RuntimeFramework"] = framework;
if (domainUsage == DomainUsage.None)
{