title: WPF WebHostBuilder does not contain definition for UseKestrel
body: <p>I am trying to implement single sign on using OIDC as per <a href="https://github.com/IdentityModel/IdentityModel.OidcClient" rel="nofollow noreferrer">GitHub</a> but I keep getting the error:</p>
  <p>'WebHostBuilder' does not contain a definition for 'UseKestrel' and no accessible extension method 'UseKestrel' accepting a first argument of type 'WebHostBuilder' could be found (are you missing a using directive or an assembly reference?)</p>
  <p>when implementing the <a href="https://github.com/IdentityModel/IdentityModel.OidcClient/blob/main/clients/ConsoleClientWithBrowser/SystemBrowser.cs" rel="nofollow noreferrer">SystemBrowser.cs</a> code</p>
  <pre><code>using IdentityModel.OidcClient.Browser;
  using Microsoft.AspNetCore.Builder;
  using Microsoft.AspNetCore.Hosting;
  using Microsoft.AspNetCore.Http;
  using System;
  using System.Diagnostics;
  using System.IO;
  using System.Net;
  using System.Net.Sockets;
  using System.Runtime.InteropServices;
  using System.Text;
  using System.Threading;
  using System.Threading.Tasks;
  
  //other code
  //simplified code extract below
  IWebHost _host = new WebHostBuilder()
               .UseKestrel()
               .UseUrls(_url)
               .Configure(Configure)
               .Build();
  //other code
  
  </code></pre>
  <p>According to <a href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.hosting.webhostbuilderkestrelextensions.usekestrel?view=aspnetcore-3.1#Microsoft_AspNetCore_Hosting_WebHostBuilderKestrelExtensions_UseKestrel_Microsoft_AspNetCore_Hosting_IWebHostBuilder_" rel="nofollow noreferrer">this</a> it should be part of the Microsoft.AspNetCore.Hosting?</p>
  <p>Is there something I'm missing or a NuGet package I need installing? The packages installed so far are:</p>
  <p><a href="https://i.stack.imgur.com/bk8IB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bk8IB.png" alt="packages installed so far" /></a></p>
  <p>Any assistance would be appreciated.</p>