.NET Core 2.1(不是Web API) - Windows服务 - 没有外部工具/库

时间:2018-06-06 08:03:06

标签: c# asp.net-core .net-core asp.net-core-2.1 .net-core-2.1

(对于.NET Core 2.0,有各种问题和答案即here,这个问题特别要求2.1)

.NET Core 2.1现在与visual studio Preview 2一起发布

我需要生成一个不是Web API的Windows服务(即它将基于.Net Core控制台应用程序)

我需要.Net Core 2.1,因为我将使用SignalR与.NET Core 2.1服务器通信,这是非.NET Core 2.1应用程序无法实现的。

使用官方的.NET Core 2.1版本,现在有一个" native"生成可以作为Windows服务添加的可执行文件的方法" sc create" ?

(没有使用nssm.cc或PeterKottas / DotNetCore.WindowsService等外部工具,但未更新到2.1)

0 个答案:

没有答案