How can I make csUnit in Visual Studio go into debug mode when I press F5?
For Visual Studio 2005:
- Open the properties of the project (not the solution)
- Select the "Debug" tab
- Select the "Start external program" and set the text box adjacent to it to point to the "csUnitCmd.exe" file in the csUnit install directory. For me that's:
C:\Program Files\csunit.org\csUnit 2.5\csUnitCmd.exe
- Under the "Start Options", set the "Command line arguments" to be "/assembly:<name_of_your_assembly>.dll", in my project, that's:
/assembly:Project1.Class1.dll
- You might also need to set the "Working Directory". For the "Debug" configuration, this is "<path_to_project>\bin\Debug". In my project, that's:
C:\work\Project1\bin\Debug
Finally, save the options (I usually have to select "Save All"), and that's it.
Last updated on 2008-09-25 22:56:49 -0700, by Shalom Craimer
Back to Tech Journal