Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.Net5 vs .Net Core 3 Which one should I choose as a target

Tags:

asp.net-core

I've started to develop a web project using asp.net core. When I opened project properties in VS2019 I noticed that it's default target framework is .net5 and not ".net core 3"? Why is that? From what I've heard in recent years .net core is the new version of .net so why VS's default target framework is .net? Should I change it to .netcore 3 ?

like image 256
Vahid2015 Avatar asked Feb 20 '21 15:02

Vahid2015


People also ask

Which .NET framework should I target?

I would recommend moving to the . Net 4.0 Client Profile. Although it doesn't have a large install base yet, it's a small download that your users can easily install. If you don't want your users to need to download the framework, you should target 3.5, which most people already have.

What is difference between .net5 and .NET Core?

Net doesn't change the . Net Core architecture, but adds some additional benefits including Core Runtime & API Performance enhancement, and deployment flexibility. . Net 5 also supports some major sub-framework for desktop development like Entity Framework, GDI+, LINQ, and ADO.Net.

Should I use .NET Core or .NET framework?

NET and ASP.NET Core are your best options. The high-performance server runtime for Windows Server and Linux makes ASP.NET Core a top performing web framework on TechEmpower benchmarks. Performance and scalability are especially relevant for microservices architectures, where hundreds of microservices may be running.

Is .NET 5 better than .NET Core?

NET 5.0 supports more types of apps and more platforms than . NET Core or . NET Framework.


2 Answers

.Net5 = .Net 5 Core

.NET 5.0 is the next major release of .NET Core following 3.1. We named this new release .NET 5.0 instead of .NET Core 4.0 for two reasons:

We skipped version numbers 4.x to avoid confusion with .NET Framework 4.x. We dropped "Core" from the name to emphasize that this is the main implementation of .NET going forward. .NET 5.0 supports more types of apps and more platforms than .NET Core or .NET Framework.

ref: https://docs.microsoft.com/en-us/dotnet/core/dotnet-five

like image 94
stemixrf Avatar answered Nov 27 '22 18:11

stemixrf


.Net5 = .Net 5 Core

.NET 5 is the next generation of .NET Core, which is a combination of previous technologies.

You are operationally better off using .NET 5. Because it has better speed and performance

like image 31
Abooraja Rajabpour Avatar answered Nov 27 '22 16:11

Abooraja Rajabpour