How do I create a C# app that decides itself whether to show as a console or windowed app?

前端 未结 11 804
广开言路
广开言路 2020-11-28 21:10

Is there a way to launch a C# application with the following features?

  1. It determines by command-line parameters whether it is a windowed or console app
11条回答
  •  旧时难觅i
    2020-11-28 21:34

    Write two apps (one console, one windows) and then write another smaller app which based on the parameters given opens up one of the other apps (and then would presumably close itself since it would no longer be needed)?

提交回复
热议问题