Skip to content

Instantly share code, notes, and snippets.

@CoreProgramm
Last active May 11, 2020 19:40
Show Gist options
  • Save CoreProgramm/62debd9a6a04abbe0672e4502e68dbde to your computer and use it in GitHub Desktop.
Save CoreProgramm/62debd9a6a04abbe0672e4502e68dbde to your computer and use it in GitHub Desktop.
Setup MVC Application
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