
In the face of the many versions of the . Net, and especially with a few names, it is believed that many primary c# developers are confused about the choice. Listed below are the main versions of . Net and its differences:
Net fRamework (traditional version only for windows). Net fRamework 1. 0 (2002) - original version. Net fRamework 2. 0 (2005) - introduction of a generic. Net fRamework 3. 0/3. 5 (2006-2007) - introduction of wpf, wcf, wf. Net fRamework 4. 0-4. 8 (2010-2019) - final version. Net coreCross platformVersion. Net core 1. 0 (2016) - first cross-platform version. Net core 2. 0/2. 1 (2017-2018) - additional api support. Net core 3. 0/3. 1 (2019) - support for windows desktop application. Net unified version (modern version). Net 5 (2020) - unified. Net platform. Net 6 (2021) - lts version. Net 7 (2022) - enhanced performance. Net 8 (2023) - enhanced performance. Net 9 (2024) - latest lts version
Main differences:
Operating environment: . Net fRamework: only windows. Net core/. Net: cross-platform deployment mode. Net fRamework: reliance on windows systems components. Net core/. Net: more self-deploymentable and flexible. Net core/. Net: performance significantly superior to fRamework version development orientation. Net fRamework: update stopped, only maintained. Net core/. Net: active development, suggested for new items
How to select:
New project proposal: use the latest . Net 9 (lts version) cross-platform needs selection. Net/. Net core maintenance old project: if . Net fThe ramework project, which could continue to be used to consider moving to a new version of special circumstances: windows-specific function: consider. Net fRamework cross-platform needs: mandatory. Net/. Net core/
The new project proposes the use of the most up-to-date version of net 9。
. Net, c# learning goes directly to microsoft's official network
Https://dotnet. Microsoft. Com/zh-cn/learn。
Https://learn. Microsoft. Com/zh-cn/
Sdk and running time
When you install net sdk, it's completeDevelop toolsChain:
Support for the development of languages c#, f#, vb. Run-time libraries and frame applications that are used in the development of the net cli tool (dotnet command) compiler time
Sdk supports the generation of running time for different target platforms:
Windows (x86/x64arm64)
Linux (x64arm/arm64)
Macos (x64arm64)
The connection between sdk and the package at running time when downloading:
. Net sdk (includes . Net running time, asp. Net running time, . Net desktop running time)
Asp. Net running time (includes. Net running time)
. Net desktop running time (includes. Net running time)
The relationship of dependence between them can be seen by their inclusion。
Runs separately from the target operating system。
... Net is operated as a base component across the platform
... Net desktop only supports windows
Asp. Net core is operated as a cross-platform component and includes is support。
There are two main ways to publish applications:
Reliance on framework deployment (f)The target machine needs to be pre-installed. Net runtume-generated applications are smaller in size and fit for multiple applications to share the time of running`dotnet public-r-self-coNtained true '
I hope this information will help you get to c#。




