title: .NET Core 2.1 (not Web API) - windows service - without external tools/libs
body: <p>(there are various questions and answers for this ie <a href="https://stackoverflow.com/questions/40763942/writing-windows-service-in-net-core">here</a> for .NET Core 2.0, this question particularly asks regards 2.1)</p>
  
  <p>.NET Core 2.1 is now released together with visual studio Preview 2</p>
  
  <p>I need to produce a windows service which is not a Web API (that is it will be based on a .Net Core console app)</p>
  
  <p>I need .Net Core 2.1 as I will be using SignalR to talk to a .NET Core 2.1 server which is not possible from a non .NET Core 2.1 app.</p>
  
  <p>With the official .NET Core 2.1 release, is there now a "native" way to produce an executable that can be added as a windows service with "sc create" ?</p>
  
  <p>(That is without using external tools like nssm.cc, or PeterKottas/DotNetCore.WindowsService which is not updated to 2.1) </p>