title: How do I launch the web browser after starting my ASP.NET Core application?
body: <p>I have a ASP.NET Core application that will be used as a client by multiple users.  In other words, it will not be hosted on a central server and they will run the published executable anytime they need to use the application.</p>
  
  <p>In the <code>Program.cs</code> file there's the following:</p>
  
  <pre><code>var host = new WebHostBuilder()
      .UseKestrel()
      .UseContentRoot(Directory.GetCurrentDirectory())
      .UseIISIntegration()
      .UseStartup&lt;Startup&gt;()
      .Build();
  
  host.Run();
  </code></pre>
  
  <p>I would like the default web browser to automatically open to avoid a redundant step of the user having to open the browser and manually put in the <code>http://localhost:5000</code> address.</p>
  
  <p>What would be the best way to achieve this?  Calling <code>Program.Start</code> after the call to <code>Run()</code> won't work because <code>Run</code> blocks the thread.</p>