title: .net core 3 , MVC , Using 'UseMvcWithDefaultRoute' to configure MVC is not supported while using Endpoint Routing
body: <p>I am trying to create a simple project based on ASP.NET Core 3.</p>
  
  <p>The MVC template for ASP.NET Core 2.2 has the following line inside the startup-class: </p>
  
  <pre><code>app.UseMvcWithDefaultRoute();
  </code></pre>
  
  <p>This line works perfectly in ASP.NET Core 2.2 and routing works, however, in ASP.NET Core 3.0 it doesn't compile and displays the following error</p>
  
  <blockquote>
    <p>Using 'UseMvcWithDefaultRoutee' to configure MVC is not supported while using Endpoint Routing.</p>
  </blockquote>
  
  <p>The question is: "How to configure routing in .net core version 3 for MVC application?"</p>