I followed this tutorial to make NUnit tests debugable in Visual Studio. In the debugging options I set "Start external program:" to C:\Program Files\NUnit 2.4.8\bin\nunit-x86.exe.
Is there a way to get the program files directory dynamically to avoid problems when other people work with this solution on their system?
Visual-studio – How to get Program Files Path in Visual Studio configuration
nunitvisual studio
Related Topic
- Git – .gitignore for Visual Studio Projects and Solutions
- Visual-studio – Difference between Build Solution, Rebuild Solution, and Clean Solution in Visual Studio
- Visual-studio – How to auto format code in Visual Studio
- Visual-studio – Can you force Visual Studio to always run as an Administrator in Windows 8
- Asp.net-mvc – Visual Studio debugging/loading very slow
- .net – Found conflicts between different versions of the same dependent assembly that could not be resolved
- JQuery selector help – Can I generate a selector from clicking on an element
Best Answer
The environment variable $PROGRAMFILES holds this. Most properties in visual studio allow you to use environment variable expansion like this: "$(PROGRAMFILES)\NUnit 2.4.8\"