In C++ I can create a console project and add some code to turn it into a
Windows Service. The same EXE file can be executed from Explorer as a
console to see the output and it can also be run from Service Control
Manager as a Windows Service. Is that possible in C#? As far as I can tell
I can only make a Window Service project and that EXE file will never run as
a standalone EXE file, or I can make a Console project and that EXE file
will never run as a Windows Service. Is it possible to have the best of
both worlds like I can in C++?