Tech Journal Back to Tech Journal

How can I make csUnit in Visual Studio go into debug mode when I press F5?

For Visual Studio 2005:

  1. Open the properties of the project (not the solution)
  2. Select the "Debug" tab
  3. 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 2.5\csUnitCmd.exe
  4. Under the "Start Options", set the "Command line arguments" to be "/assembly:<name_of_your_assembly>.dll", in my project, that's:
  5. 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:

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