【发布时间】:2013-04-13 00:05:15
【问题描述】:
有没有一种方法可以设置默认调试命令行参数或默认应用程序参数,而无需在项目设置的“调试”选项卡中设置参数?
我的意思是如果我能做这样的事情:
Module Main
#If DEBUG Then
' Debug Commandline arguments for my application:
My.Application.CommandLineArgs = "-Sleep 5 -Interval 50 -Key CTRL+C"
#End If
...Sub main()
GetArguments() ' A function wich gets the arguemnts that I've set.
...etc...
End module
【问题讨论】:
标签: c# .net vb.net arguments command-line-arguments