The answer from slugster did not work for me (most possible my fault).
In Visual Studio 2008
- right click on your project in the Solution Explorer, select Properties
- Go to Configuration Properties and then to Debugging
- Click on the arrow in the Command Field and click the Edit Button
- In Edit clik "Macros>>" You will see there the values of ProjectDir... etc..