I have an app I would like to create to be used as a console environment as well as a Windows environment.
For example...
1) From command window
I want to open command prompt and type myapp.exe --help
for it to show my the console output of...
c:\myapp.exe
Usage: myapp.exe [--option]
Switches:
--help : Shows this information.
--ver : Shows version.
2) From window
I want to double click on myapp.exe
and it to show a form window instead.
Currently I do this by setting the project type to Console Application
but this also shows a console window under my form when I double click it.
Is there a way to create the application to be used in both environments?