Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

Tagged as

Go to top

How to Debug or Test your Windows Service Without Installing it...

, 25 Oct 2011
Rate this:
Please Sign up or sign in to vote.
Along similar lines to KeithAMS, when writing a Windows service, I only use the Windows Service Project as a container to run code that is in one or more referenced assemblies. As far as I'm concerned, if I've got any logic that goes beyond starting and stopping the service in my service...
Along similar lines to KeithAMS, when writing a windows service I only use the Windows Service Project as a container to run code that is in one or more referenced assemblies. As far as I'm concerned, if I've got any logic that goes beyond starting and stopping the service in my service project then I've made an error in separating the concerns of the application.
 
Testing the referenced assemblies by themselves is easy enough with the multitude of unit testing frameworks and automated build tools that are available for free these days.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

jim lahey
Software Developer (Senior)
United Kingdom United Kingdom
First batch file in 1987
 
Messed around with the Bullfrog C++ Libraries for Syndicate in 1994
 
Web Developer since 2000
 
.net Developer since 2001
 
MCTS: Microsoft® .NET Framework 2.0 - Web-based Client Development
 
MCTS: Web Applications Development with Microsoft .NET Framework 4

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 25 Oct 2011
Article Copyright 2011 by jim lahey
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid