How to pass the solution folder as a parameter in command line arguments (for debugging)?

In the Visual Studio Debug part, we can pass arguments.

I want to know how to pass the solution folder as an argument, but not putting the directory in hardcoded. I will use the project in different places, and I do not want to change these arguments all the time.

+2
source share
1 answer

In the visual studio, open the project settings (Alt + F7), then go to the configuration / debugging properties. In the field with the list of command arguments select "edit", a dialog box will appear. Click the Macros button and select Solution as an argument.

0
source

All Articles