How to pass solution folder as parameter in comman

2019-07-20 13:31发布

In Visual Studio Debug part, we can pass arguments.

I want to know how to pass the solution folder as an argument, but without putting the directory hardcoded. I will use the project in different locations and I don't want to change those arguments all the time.

1条回答
在下西门庆
2楼-- · 2019-07-20 13:42

In visual studio, open project settings (Alt + F7), then goto configuration properties/debugging. In the command arguments combo box select 'edit', a dialog box will popup. Click on Macros button and select SolutionDir as the argument.

查看更多
登录 后发表回答