Journal of a software dev

November 14, 2011

Still creating windows services in .NET by hand?

Filed under: Uncategorized — Tags: , , — Michael Cromwell @ 12:30 pm

Seriously stop and use Topshelf, why?…

  • Turns a console application into a windows service which allows much easier debugging
  • Uses a fluent interface to setup your services allowing easy in code setup
  • An instance can be provided at install allowing multiple same services on the same machine (which means you won’t need to read this)

The project site has a good Getting Started guide, once your ready to install the service, simply run this in a cmd prompt in the same directory as your exe:

myservice.exe install /instance:test
Advertisement

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.