Skip to content

Tag: services

Creating a dotnet core windows service

Services are great for performing reoccurring tasks, especially if the task needs to be repeated often, say every minute. They also have the benefit of not requiring anyone to be logged in to run the service. Luckily with dot net core, you can have one set up and running very easily with the help of TopShelf. To get started, create a new console application using the CLI. dotnet new console –name MyService Import the TopShelf NuGet into your .csproj file like so In your program file, configure and run a new service host. In the example below I create my…