[英]VS2010 - Project Macro Variables in Start Options Command Line Arguments
In a projects settings, on the Debug tab, is there a way to use to use the project macro variables in the command line arguments box?在项目设置中的“调试”选项卡上,是否可以使用命令行参数框中的项目宏变量?
I know you can't use them directly because they don't get expanded but is there a clever solution to this?我知道你不能直接使用它们,因为它们没有得到扩展,但是有没有一个聪明的解决方案?
EDIT: I'm using a C# project.编辑:我正在使用 C# 项目。
No, this is supported [ but not for C# projects ].不,这是支持的 [但不适用于 C# 项目]。
Silly example I tried: Command Arguments = $(CharacterSet)
.我试过的愚蠢例子: Command Arguments =
$(CharacterSet)
。 Got "Unicode"
at runtime for argv[1]
inside main()
.在运行时为
main()
argv[1]
获得"Unicode"
。
Select "Command Arguments", click on the dropdown arrow, Edit.选择“命令参数”,单击下拉箭头,编辑。 Click Macros to see what macros are available.
单击宏以查看可用的宏。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.