wpf - When adding command line arguments from the project's Start Options, the vshost.exe is added as an argument -
if put 2 arguments in field, shows 3 because gives me vshost.exe process well.
it's throwing off debugging. know either way fix or alternate method of getting command line arguments in wpf?
i'm getting them via:
string[] args = environment.getcommandlineargs();
the first argument process name.
when run exe outside debugger first argument "myapplication.exe".
you should start processing of command line arguments index 1.
the first element in array contains file name of executing program. if file name not available, first element equal string.empty. remaining elements contain additional tokens entered on command line.
Comments
Post a Comment