Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use Topshelf with a .NET Core 2.1 application?

I have an console application on .NET Core 2.1. I have used top-shelf to have it configure it as a windows service.

Has anyone successfully ,installed a .NET Core console application as a windows services using top-shelf.

Any documentation leading to that, would be helpful

Thanks

like image 750
alangilbi Avatar asked Oct 30 '18 20:10

alangilbi


People also ask

Does topshelf work with .NET core?

Topshelf is available in . net standard and that means you can use it in . net core apps.

What is topshelf used for?

Topshelf is a Windows service framework for the . NET platform. Topshelf makes it easy to create a Windows service, test the service, debug the service, and ultimately install it into the Windows Service Control Manager (SCM).


Video Answer


2 Answers

Was sucessfully able to install it using NSSM - the Non-Sucking Service Manager

like image 102
alangilbi Avatar answered Oct 12 '22 05:10

alangilbi


I've written a small library that allows you to run IHostedServices as a Windows service. The service is configured and run using Topshelf. https://github.com/erizet/TopshelfHosting

like image 1
Erik Z Avatar answered Oct 12 '22 05:10

Erik Z