Api. WindowsService. DotNetCore
Transform your .Net core Api into All in one service. With your self contained build for Win64 you are able to Install and run your Api as Windows service, Self host with double click or even host in IIS proxy. One build does everything.
Use following code in Program.cs:
public static void Main(string args)
It will bind local ip address from first adapter and use port 5300. You can change these passing additional parameters after "args" parameter.
Install-Package JorJika.Api.WindowsService.DotNetCore -Version 1.0.5
dotnet add package JorJika.Api.WindowsService.DotNetCore --version 1.0.5
<PackageReference Include="JorJika.Api.WindowsService.DotNetCore" Version="1.0.5" />
paket add JorJika.Api.WindowsService.DotNetCore --version 1.0.5
This package is not used by any popular GitHub repositories.