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 -Version 1.0.10
dotnet add package JorJika.Api.WindowsService --version 1.0.10
<PackageReference Include="JorJika.Api.WindowsService" Version="1.0.10" />
paket add JorJika.Api.WindowsService --version 1.0.10
v1.0.7 => Added event "WebHostBuilderBeforeBuild". This gives ability to configure builder on your choice. Event raises before "IWebHostBuilder.Build()" command.
v1.0.8 => Added command --docker. If applied "*" will be used for binding in kestrel.
v1.0.9 => Bug fixed parsing Uri.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.