NUnit won't start on Vista x64 in Visual Studio 2003
I am trying to run NUnit in Visual Studio 2003 on Vista 64bit, but with no success.
I set the project debug mode to "Program" and "Run Application" to "C: \ Program Files (x86) \ NUnit 2.4.8 \ bin \ nunit.exe". The test project is defined as a StartUp project. All code is in .NET 1.1. Unlike .NET 2.0, the processor architecture cannot be targeted (when the 1.1 executable is loaded on an x64 machine, it runs in WoW64 as a 32-bit process and uses the 32-bit framework).
After I clicked the "Debug"> "Start" button, I get the error "Project with type" Output type "cannot be launched directly". I am stuck and cannot start NUnit.
The closest related stackoverflow question was about getting NUnit to work on Vista x64 in Visual Studio 2005 "Nunit.exe can't work on Vista 64bits if x86 build (stackoverflow.com/questions/208985/NUnit-ex- can't-work -on-vista-64bits-if-x86-assembly) Also, NUnit did not install nunit-x86.exe from the NUnit-2.4.8-net-1.1.msi image.
My development environment is
Vista x64 SP1
Visual Studio 2003 (version 7.1.3088)
.NET Framework 1.1 (version 1.1.4322 SP1)
NUint 2.4.8 (installed with NUnit-2.4.8-net-1.1.msi )
I found the problem - and it had nothing to do with Vista x64.
I have set the Debug mode of the main project to "Program" and "Start Application" to "C: \ Program Files (x86) \ NUnit 2.4.8 \ bin \ nunit.exe", not the test project.
Even though I installed the test project in the StartUp project, the Debug mode in the test project was still set to the default "Project" and not "Application". I have enabled debug configurations; so the main project was set to "Project" and the test project included NUnit debug configurations.
Synopsis: NUnit runs on Vista x64 in Visual Studio 2003.
If your application is a 32 bit application then you need to use nunit-x86.exe, it is for testing a 32 bit application on a 64 bit system. See the detailed explanation here: http://www.nunit.org/index.php?p=nunit-gui&r=2.4.2
a source to share