Someone confuse about the .NET version and C# programming language version in someday. Remember that: .NET is Framework which was created by Microsoft to build platform like web service, application,…. You can write .NET apps in C#, F#, or Visual Basic. C# is a simple, modern, object-oriented, and type-safe programming language.

Screen Shot 2022-11-01 at 21.45.54.png

.NET version

Target framework version C# language version default
.NET 7.x C# 11
.NET 6.x C# 10
.NET 5.x C# 9.0
.NET Core 3.x C# 8.0
.NET Core 2.x C# 7.3
.NET Standard 2.1 C# 8.0
.NET Standard 2.0 C# 7.3
.NET Standard 1.x C# 7.3
.NET Framework all C# 7.3

In the above table they named this new release .NET 5 instead of .NET Core 4 for two reasons:

ASP.NET Core 5.0 is based on .NET (core) 5 but retains the name "Core" to avoid confusing it with ASP.NET MVC 5. Likewise, Entity Framework Core 5.0 retains the name "Core" to avoid confusing it with Entity Framework 5 and 6.

What is the newest version now?

It’s C# 10 based on .NET 7 but C# version 11 will be released in November 2022 together with . NET 7.

💥 💥 💥  I’m using .NET 6 Let’s look around What's new in .NET 6