.NET console application as Windows service
I have console application and would like to run it as Windows service. VS2010 has project template which allow to attach console project and build Windows service. I would like to not add separated service project and if possible integrate service code into console application to keep console application as one project which could run as console application or as windows service if run for example from command line using switches. Maybe someone could suggest class library or code snippet which could quickly and easily transform c# console application to service? VladV I usually use the