Last active
May 11, 2020 19:40
-
-
Save CoreProgramm/62debd9a6a04abbe0672e4502e68dbde to your computer and use it in GitHub Desktop.
Setup MVC Application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ConfigureServices(IServiceCollection services) | |
{ | |
// If you are using .NET Core SDK 2.2 | |
services.AddMvc(); | |
// OR If you are using .NET Core 3.0 or 3.1 then you need to customize the AddMVC() like this. | |
services.AddMvc(options => options.EnableEndpointRouting = false); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment