dotnet.exe runs the application from the main entry point (public static Main() method in the Program.cs file).
First, it creates a new web host by calling the WebHost.CreateDefaultBuilder() and the Build() methods.
The CreateDefaultBuilder() method includes the UseKestrel() method within itself. The UseKestrel() method is an ExtensionMethod provided by the Microsoft.AspNetCore.Server.Kestrel.dll assembly.
We can see the only NuGet dependency of the project is Microsoft.AspNetCore.All ...