From 7d8e21f0343a0fa171a30e7b2bb77de397d1abac Mon Sep 17 00:00:00 2001 From: Ruchit Patel Date: Tue, 19 Oct 2021 13:00:39 +0530 Subject: [PATCH] Migrated sample project from 2.2 to 3.1 LTS --- samples/MVCSample/MVCSample.Bootstrap3.csproj | 9 ++------- samples/MVCSample/Startup.cs | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/samples/MVCSample/MVCSample.Bootstrap3.csproj b/samples/MVCSample/MVCSample.Bootstrap3.csproj index 46c001b..028bcde 100644 --- a/samples/MVCSample/MVCSample.Bootstrap3.csproj +++ b/samples/MVCSample/MVCSample.Bootstrap3.csproj @@ -1,15 +1,10 @@  - netcoreapp2.2 + netcoreapp3.1 InProcess - - - - - - + diff --git a/samples/MVCSample/Startup.cs b/samples/MVCSample/Startup.cs index 6d4dcea..ef292b8 100644 --- a/samples/MVCSample/Startup.cs +++ b/samples/MVCSample/Startup.cs @@ -17,7 +17,7 @@ public Startup(IConfiguration configuration) // This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { - services.AddMvc(); + services.AddMvc(options => options.EnableEndpointRouting = false); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.