WebHost.CreateDefaultBuilder Method . Remarks. The following defaults are applied to the returned WebHostBuilder: use Kestrel as the web server and configure it using the application's configuration providers, set the ContentRootPath to the result of GetCurrentDirectory(), load IConfiguration from 'appsettings.json' and 'appsettings. .