diff --git a/Startup.cs b/Startup.cs index f653d2c..39af297 100644 --- a/Startup.cs +++ b/Startup.cs @@ -33,7 +33,9 @@ namespace webmusic }); - services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2); + services.Configure(options => { options.EnableEndpointRouting = false; }); + + services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Latest); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. diff --git a/webmusic.csproj b/webmusic.csproj index df393e6..2a7ecba 100644 --- a/webmusic.csproj +++ b/webmusic.csproj @@ -1,20 +1,11 @@  - netcoreapp2.2 + netcoreapp3.0 full - - - - - - - - -