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.
See the version list below for details.
Install-Package JorJika.Api.WindowsService -Version 1.0.7
dotnet add package JorJika.Api.WindowsService --version 1.0.7
<PackageReference Include="JorJika.Api.WindowsService" Version="1.0.7" />
paket add JorJika.Api.WindowsService --version 1.0.7
Added event "WebHostBuilderBeforeBuild". This gives ability to configure builder on your choice. Event raises before "IWebHostBuilder.Build()" command.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.