title: No overload for method 'UseRouting' takes 1 arguments
body: <p>I just updated to ASP.NET Core 3 Preview 5, now when I open my solution and try to build it throws the error
  'No overload for method 'UseRouting' takes 1 arguments' in the Startup.cs file in the Configure() at the following code:</p>
  
  <pre><code>    app.UseRouting(routes =&gt; {
          routes.MapControllerRoute(
              name: "default",
              template: "{controller=Home}/{action=Index}/{id?}");
          routes.MapRazorPages();
      });
  </code></pre>
  
  <p>I did read some documentation on the Microsoft docs and tried replacing the above code with:</p>
  
  <pre><code>    app.UseEndpoints(endpoints =&gt; {
          endpoints.MapControllerRoute(
              name: "default",
              pattern: "{controller=Home}/{action=Index}/{id?}");
          endpoints.MapRazorPages();
      });
  </code></pre>
  
  <p>However, during build time that throws an System.InvalidOperationException with the following context:</p>
  
  <blockquote>
    <p>'EndpointRoutingMiddleware matches endpoints setup by
    EndpointMiddleware and so must be added to the request execution
    pipeline before EndpointMiddleware. Please add
    EndpointRoutingMiddleware by calling 'IApplicationBuilder.UseRouting'
    inside the call to 'Configure(...)' in the application startup code.'</p>
  </blockquote>
  
  <p>I tried replacing the following line in the ConfigureServices method:</p>
  
  <pre><code>    services.AddMvc()
          .AddNewtonsoftJson();
  </code></pre>
  
  <p>width:</p>
  
  <pre><code>    services.AddControllersWithViews()
          .AddNewtonsoftJson();
      services.AddRazorPages();
  </code></pre>
  
  <p>This does not throw errors anymore but my page is blank when it finishes loading. Who can help me solve this issue?</p>
  
  <p>For my solution I use the following packages:</p>
  
  <pre><code> &lt;PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="3.0.0-preview5-19227-01" /&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="3.0.0-preview5-19227-01" /&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="3.0.0-preview5-19227-01" /&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.0.0-preview5-19227-01" /&gt;
      &lt;PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.0.0-preview5.19227.1" /&gt;
      &lt;PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.0.0-preview5.19227.1"&gt;
        &lt;PrivateAssets&gt;all&lt;/PrivateAssets&gt;
        &lt;IncludeAssets&gt;runtime; build; native; contentfiles; analyzers; buildtransitive&lt;/IncludeAssets&gt;
      &lt;/PackageReference&gt;
      &lt;PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.0.0-preview5.19227.9" /&gt;
      &lt;PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.3" /&gt;
  </code></pre>
  
  <p>The TargetFramework of my solution is netcoreapp3.0</p>