Open GoogleCodeExporter opened 9 years ago
If the you could set the Host runner for each project it would be ideal. By
renaming the Gallio.Host.x86.exe to Gallio.Host.exe I can run my CassiniDev
tests in 32bit mode. Same goes for sqlite, both use native calls and therefore
must be compiled to a certain architecture.
This is really important as more and more PC's with be 64bit. NUnit provides a
x86 host which works nicely.
This method could look up a project property?
private static string GetHostFileName(ProcessorArchitecture processorArchitecture, bool elevated)
{
// TODO: Should find a way to verify that Amd64 / IA64 are supported.
switch (processorArchitecture)
{
case ProcessorArchitecture.None:
case ProcessorArchitecture.MSIL:
case ProcessorArchitecture.Amd64:
case ProcessorArchitecture.IA64:
return elevated ? "Gallio.Host.Elevated.exe" : "Gallio.Host.exe";
case ProcessorArchitecture.X86:
return elevated ? "Gallio.Host.Elevated.x86.exe" : "Gallio.Host.x86.exe";
default:
throw new ArgumentOutOfRangeException("processorArchitecture");
}
}
Original comment by tim.pl...@gmail.com
on 29 Apr 2011 at 11:03
Original issue reported on code.google.com by
tim.pl...@gmail.com
on 24 Apr 2011 at 10:56