Skip to content
分类目录:

.Net SDK Overview

Post date:
Author:
Number of comments: no comments

下载 .NET Framework:

https://dotnet.microsoft.com/zh-cn/download/dotnet-framework

set path=%ProgramFiles%\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin;%path%

C#语言版本

https://learn.microsoft.com/zh-cn/dotnet/csharp/language-reference/configure-language-version

编译器根据以下规则确定默认值:

目标

版本

C# 语言版本的默认值

.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

全部

C# 7.3

如果你的项目是以具有相应预览语言版本的预览框架为目标,那么使用的语言版本是预览语言版本。 你可在任何环境中使用该预览版提供的最新功能,而不会影响面向已发布 .NET Core 版本的项目。

What’s new in C#

https://learn.microsoft.com/zh-cn/dotnet/csharp/whats-new/csharp-version-history

Standard对应的版本信息:

https://learn.microsoft.com/zh-cn/dotnet/standard/net-standard?tabs=net-standard-2-1

.NET Standard 2.0 提供 37,118 个可用 API 中的 32,638 个。

.NET 实现

版本支持

.NET 和.NET Core

2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0

.NET Frameworke 1

4.6.1 2、4.6.2、

4.7、4.7.1、4.7.2、

4.8、4.8.1

Mono

5.4、6.4

Xamarin.iOS

10.14、12.16

Xamarin.Mac

3.8、5.16

Xamarin.Android

8.0、10.0

通用 Windows 平台

10.0.16299,待定

Unity

2018 年 1 月

.NET Standard 2.1 提供 37,118 个可用 API 中的 37,118 个。

.NET 实现

版本支持

.NET 和.NET Core

3.0, 3.1, 5.0, 6.0, 7.0

.NET Framework 1

N/A2

Mono

6.4

Xamarin.iOS

12.16

Xamarin.Mac

5.16

Xamarin.Android

10.0

通用 Windows 平台

N/A3

Unity

2021.2

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

豫ICP备2021008859号-1