From cb8efd80953438d45456ee18eaae4115f2ca3183 Mon Sep 17 00:00:00 2001 From: Gaurav Madaan Date: Fri, 27 Nov 2020 22:12:23 +0530 Subject: [PATCH 1/2] updated to netcore3.1 --- Aspnetcoreapp/Aspnetcoreapp.csproj | 2 +- Aspnetcoreapp/Startup.cs | 10 +++++----- ProductLibrary/ProductLibrary.csproj | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Aspnetcoreapp/Aspnetcoreapp.csproj b/Aspnetcoreapp/Aspnetcoreapp.csproj index 447b754..c770ab6 100644 --- a/Aspnetcoreapp/Aspnetcoreapp.csproj +++ b/Aspnetcoreapp/Aspnetcoreapp.csproj @@ -1,7 +1,7 @@  - netcoreapp2.2 + netcoreapp3.1 InProcess aspnetcoreapp diff --git a/Aspnetcoreapp/Startup.cs b/Aspnetcoreapp/Startup.cs index ea89336..cf55ed5 100644 --- a/Aspnetcoreapp/Startup.cs +++ b/Aspnetcoreapp/Startup.cs @@ -14,15 +14,15 @@ public class Startup public void ConfigureServices(IServiceCollection services) { - services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2); + services.AddMvc(); } - public void Configure(IApplicationBuilder app, IHostingEnvironment env) + public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { - if (env.IsDevelopment()) + if (env.EnvironmentName == "Development") app.UseDeveloperExceptionPage(); - - app.UseMvc(); + app.UseRouting(); + app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); } } } diff --git a/ProductLibrary/ProductLibrary.csproj b/ProductLibrary/ProductLibrary.csproj index 85b1ed0..a5cdeb2 100644 --- a/ProductLibrary/ProductLibrary.csproj +++ b/ProductLibrary/ProductLibrary.csproj @@ -1,13 +1,13 @@  - netcoreapp2.2 + netcoreapp3.1 ProductLibrary - - + + From 1d27ec598e52b6937c896e454cf8168b35f3b180 Mon Sep 17 00:00:00 2001 From: Gaurav Madaan Date: Fri, 27 Nov 2020 22:13:36 +0530 Subject: [PATCH 2/2] corrected typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bf09b6b..a455589 100644 --- a/README.md +++ b/README.md @@ -37,4 +37,4 @@ If you want to see if this example system works properly, just access in your br ] ``` -If you see empty result, wait a while and try again - maybe MyQSL database is not fully initialized yet. \ No newline at end of file +If you see empty result, wait a while and try again - maybe MySQL database is not fully initialized yet. \ No newline at end of file