c# - Alternate running a console Application as Exe and WinExe -


this question has answer here:

i have c# console application running output type set "windows application" prevent console being seen during normal use. however, option alternatively run program console application @ will, in case user wanted troubleshoot , view console's output.

is possible pass command-line argument executable either run application in "console" mode or "windows application" mode depending on user's desire? if not, there other way change on fly if application show console or not?

no, can't. there's fundamental difference between console application , winforms application goes deep. once application compiled, cannot changed @ run time.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -