Windows Service With Topshelf In .Net Core
go to publish folder and open your command prompt as Administrator
WindowsServiceWithTopshelfInNetCore.exe install -servicename "MyService" -displayname "MyService Display Name" -description "MyService Description"
WindowsServiceWithTopshelfInNetCore.exe uninstall