title: 'IHostingEnvironment' is obsolete
body: <p>I updated my ASP.NET Core project to .NET Core v3.0.0-preview3, and I now get:</p>
  
  <blockquote>
    <p>Startup.cs(75,50,75,69): warning CS0618: 'IHostingEnvironment' is
    obsolete: 'This type is obsolete and will be removed in a future
    version. The recommended alternative is
    Microsoft.AspNetCore.Hosting.IWebHostEnvironment.'</p>
  </blockquote>
  
  <p>The code is:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public void Configure(IApplicationBuilder app, IHostingEnvironment env) {
    if (env.IsDevelopment()) {
      …
    }
  }
  </code></pre>
  
  <p>What is the correct way to do this now? Are there any documentation or examples to demonstrate that?</p>