C# Console Application 带参数调试

来源:互联网 发布:自建机房 vs 阿里云 编辑:程序博客网 时间:2024/06/05 11:32

1. 双击 Console Application 的 "Properties"

 

2. 单击左侧 "Debug”("调试")选项卡

 

3. 在 "Start Options" ("启动选项") 的 "Command line arguments:" ("命令行参数:") 里填入想要提供的参数即可

 

    例如输入:-filename:file.txt -otherArg:red

 

注意:参数与参数之间用 " "(空格) 隔开。


原创粉丝点击