如何解决文件夹通过在命令行参数(用于调试)参数? [英] How to pass solution folder as parameter in command line arguments (for debug)?

查看:144
本文介绍了如何解决文件夹通过在命令行参数(用于调试)参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio中调试的一部分,我们可以传递参数。

我想知道如何通过解决方案文件夹作为一个参数,但没有把目录硬codeD。我会用不同位置的项目,我并不想改变这些参数的所有时间。

Thamks提前!


解决方案

在Visual Studio中,打开的项目设置(Alt + F7),然后转到配置属性/调试。在命令参数组合框中选择编辑,一个对话框会弹出。点击宏按钮,然后选择SolutionDir作为参数。<​​/ P>

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.

Thamks in advance!

解决方案

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.

这篇关于如何解决文件夹通过在命令行参数(用于调试)参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆