开发者

How to pass solution folder as parameter in command line arguments (for debug)?

开发者 https://www.devze.com 2022-12-25 15:56 出处:网络
In Visual Studio Debug part, we can pass arguments. I want to开发者_如何学JAVA know how to pass the solution folder as an argument, but without putting the directory hardcoded. I will use the project

In Visual Studio Debug part, we can pass arguments.

I want to开发者_如何学JAVA 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号