Articles → ASP .NET CORE → Difference Between .Net 5.0 Core And .Net 6.0 Core

Difference Between .Net 5.0 Core And .Net 6.0 Core






Webapplication Class





Difference 1




Picture showing the files startup.cs and program.cs is merged into one file in .net core 6.0
Click to Enlarge


Difference 2




Picture showing the ConfigureServices and Configure methods in .net core 5.0
Click to Enlarge



Picture showing using the WebApplication  class in .net 6.0
Click to Enlarge


Difference 3




public Startup(IConfiguration configuration)
{
            Configuration = configuration;
}

// Read configuration
Configuration["ConnectionString"];




var builder = WebApplication.CreateBuilder(args);
// Read configuration
builder.Configuration[“ConnectionString”]



Difference 4




Picture showing using the IServiceCollection inside the ConfigureServices method in .net core 5.0
Click to Enlarge



Picture showing using builder.Services in .net core 6.0
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, September 30, 2022

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250