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.

source


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -