I want to create a complete hybrid app, working both as an Windows Forms
and as a Console Application
. When I execute it without arguments or not in the console I want the app to open the GUI and leave the console, just like an ordinary Windows Forms app does when called from the console, but to respond to the user and interact with him throug the console when some arguments are informed, like accepting terms ans conditions or confirming a file overwrite. Is that possible?
P.S.: I don't mind having a console output while running the GUI, but I want the console to stay hidden when running on GUI and no GUI when running as console.
NOTE
The solution sugested in how to run a winform from console application? (creating a forms project an then changing to console) doesn't attend me because it opens a console window when the app is called from the explorer.