title: 'Could not load type 'Microsoft.Extensions.Primitives.InplaceStringBuilder' from assembly 'Microsoft.Extensions.Primitives
body: <p>I am working on an ASP.NET Core v2.1 Razor Pages project in which I am working on implementing Auth0 for user authentication. After setting everything up, I attempted to build my project and am getting the following exception:</p>
  <pre><code>System.TypeLoadException: 'Could not load type 'Microsoft.Extensions.Primitives.InplaceStringBuilder' 
  from assembly 'Microsoft.Extensions.Primitives, Version=5.0.0.0, Culture=neutral, 
  PublicKeyToken=adb9793829ddae60'.'
  </code></pre>
  <p>In order to set up Auth0, I had to install the Microsoft.Extensions.Primitives nuget package. However, when trying to build my project, this is the error I get. If I remove the package, when I try and build the project, I get the following error:</p>
  <pre><code>Version conflict detected for Microsoft.Extensions.Primitives. Install/reference 
  Microsoft.Extensions.Primitives 5.0.0 directly to your project to resolve this issue.
  </code></pre>
  <p>The following code is where the exception is being thrown:</p>
  <pre><code>public class Program
  {
      public static void Main(string[] args)
      {
          CreateWebHostBuilder(args).Build().Run();
      }
  
      public static IWebHostBuilder CreateWebHostBuilder(string[] args) =&gt;
          WebHost.CreateDefaultBuilder(args)
              .UseStartup&lt;Startup&gt;();
  }
  </code></pre>
  <p>I have read that InplaceStringBuilder does not exist in Microsoft.Extensions.Primitives anymore so I am assuming this is causing the problem. However, I don't see InplaceStringBuilder being used anywhere so I can't seem to figure out what it is even needed for.</p>
  <p>Does anyone know a way to resolve this issue?</p>