title: Generic host builder
body: <p>What would be the equivalent code of web host builder for generic host builder for console application in 'Microsoft.Extensions.Hosting':</p>
  
  <pre><code>var hostBuilder = WebHost.CreateDefaultBuilder(args).UseConfiguration(config).UseStartup&lt;TStartup&gt;();
  </code></pre>