I had an Asp.Net core 2.2 project.
Recently, I changed the version from .net core 2.2 to .net core 3.0 Preview 8. After this change I see this warning message:
using ‘UseMvc’ to configure MVC is not supported while using Endpoint
Routing. To continue using ‘UseMvc’, please set
‘MvcOptions.EnableEndpointRouting = false’ inside ‘ConfigureServices’.
I understand that by setting EnableEndpointRouting
to false I can solve the issue, but I need to know what is the proper way to solve it and why Endpoint Routing does not need UseMvc()
function.