I have a windows service. If I start it from the debugger I want to run with console output (since you can not run a service).
Usually a Windows Service is set to WindowApplication as project type and has no "window" entry point. Thus it removes the good old console.
If you want a console window you need to change the project type to ConsoleAppication. I would like to do this within the program itself instead changing the Project settings.
Is it possible?