.Net Core 2.0 Windows Service

前端 未结 10 1377
谎友^
谎友^ 2021-01-30 01:25

I\'m trying to build a Windows Service in .Net Core 2.0 but I\'ve been banging my head on the wall for a full day and no progress at all. Everything seems to be using Core 1.0/1

10条回答
  •  庸人自扰
    2021-01-30 02:02

    An easy way to create a .NET Core Windows service is by using Peter Kottas' DotNetCore.WindowsService library.

    The NuGet package is PeterKottas.DotNetCore.WindowsService. To install it using the Visual Studio Package Manager Console, just run

    Install-Package PeterKottas.DotNetCore.WindowsService
    

    There are good notes on how to get started, too.

提交回复
热议问题