Jason Callas <(E-Mail Removed)> wrote:
> I am aware that you can just create a console application but that does not
> work for my purposes.
>
> I am writing a windows service that COULD be run as a standalone application
> by passing a command-line argument. In that case (while in the IDE) I would
> want a console window to be opened to handle input and output.
>
> I'm guessing I could always just change the output type of the project to
> Console while developing and change it back to Windows when I want to
> release it.
If you want to create a console optionally, you can use WinConsole:
http://www.codeproject.com/csharp/winconsole.asp
I believe there are a number of libraries like this available, so you
might want to shop around.
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too