Alex Rivera | Logout

Best guide for creating Windows Services in C# .NET?

Asked 2008-11-06T17:49:13.777
19

I'm looking to convert a small .NET console application into a Windows Service. I'd like to build two versions, one using .NET 2.0 and another with .NET 3.5 .

Are there radically different approaches that need to be taken, or will the 2.0 version be roughly equivalent to the 3.5 version? Where's a good source of information (i.e. a web-based guide) that can walk me through the steps of setting up the service?

Thanks! P.A.

Edit
Report

1 Answer

1

The thing to remember is that .NET 3.5 is a set of additional libraries on top of .NET 2.0, so, unless you are planning on taking advantage of any additional features provided by .NET 3.5 (or .NET 3.0) like LINQ or WCF the code would be identical.

Try looking at the documentation for ServiceBase, which is the base class that you will need to inherit, to get things started.

answered 2008-11-06T17:55:29.427

Your Answer