microsoft.net.compilers软件包中包含什么版本的编译器? [英] What version of the compiler is in a microsoft.net.compilers package?

查看:89
本文介绍了microsoft.net.compilers软件包中包含什么版本的编译器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

microsoft.net.compilers软件包的文档(位于 https://www.nuget .org / packages / Microsoft.Net.Compilers / )说

Documentation for microsoft.net.compilers package (at https://www.nuget.org/packages/Microsoft.Net.Compilers/) says


.Net编译器软件包。引用此软件包将导致
项目使用软件包中包含的C#和Visual
Basic编译器的特定版本构建,而不是任何系统
安装版本。

.Net Compilers package. Referencing this package will cause the project to be built using the specific version of the C# and Visual Basic compilers contained in the package, as opposed to any system installed version.

...这引出了一个问题:软件包中包含哪个版本的编译器?

... which begs the question: what version of the compiler is in the package?

同一页面上说它支持.NET Framework 4.5,但这不是编译器版本吗?

That same page says that it supports .NET framework 4.5, but that's not the compiler version, is it?

该软件包有多个版本。然后,我假设程序包的不同版本可能包含编译器的不同版本。

There are several versions of the package. I assume then that different versions of the package may contain different versions of the compiler. Is there a table somewhere that specifies which compiler version is in each package version?

我想程序包同时包含c#和vb编译器,但我只对c#感兴趣。

I guess the package contains both c# and vb compilers, but I'm only interested in c#.

推荐答案

来自 https://github.com/dotnet/roslyn/wiki/NuGet-packages



  • 版本1.x表示C#6.0(Visual Studio 2015和更新)。例如,1.3.2对应于Visual Studio 2015的最新更新(更新3)。

  • 2.0版表示C#7.0(Visual Studio 2017版本15.0)。

  • 2.1版仍为C#7.0,但有一些修复(Visual Studio 2017版本15.1)。

  • 2.2版仍为C#7.0,但有多个修复(Visual Studio 2017版本15.2)。

  • 版本2.3表示C#7.1(Visual Studio 2017版本15.3)。

  • 版本2.4仍为C#7.1, VB 15.3,但有一些修复程序(Visual Studio 2017版本15.4)。

  • 2.6版表示C#7.2和VB 15.5(Visual Studio 2017版本15.5)。

  • 版本2.7表示C#7.2和VB 15.5,但有许多修复程序(Visual Studio 2017版本15.6)。

  • 版本2.8意味着C#7.3(Visual Studio 2017版本15.7)

  • 版本2.9仍为C#7.3和VB 15.5,但具有更多修复程序(Visual Studio 2017版本15.8)

  • 版本2.10仍为C#7.3和VB 15.5,但还有一些修复(Visual Studio 2017版本15.9)

  • 版本3.0包括C#8.0 beta(Visual Studio 2019版本16.0),但预览版使用了2.11。

  • 版本3.1包括C#8.0的预览版(Visual Studio 2019版本16.1)

  • 版本3.2包括C#8.0的预览版(Visual Studio 2019版本16.2)

  • 版本3.3包括C#8.0(Visual Studio 2019版本16.3,.NET Core 3.0)

  • 版本3.4包括C#8.0(Visual Studio 2019版本16.4,.NET Core 3.1)

  • Versions 1.x mean C# 6.0 (Visual Studio 2015 and updates). For instance, 1.3.2 corresponds to the most recent update (update 3) of Visual Studio 2015.
  • Version 2.0 means C# 7.0 (Visual Studio 2017 version 15.0).
  • Version 2.1 is still C# 7.0, but with a couple fixes (Visual Studio 2017 version 15.1).
  • Version 2.2 is still C# 7.0, but with a couple more fixes (Visual Studio 2017 version 15.2).
  • Version 2.3 means C# 7.1 (Visual Studio 2017 version 15.3).
  • Version 2.4 is still C# 7.1 and VB 15.3, but with a couple fixes (Visual Studio 2017 version 15.4).
  • Version 2.6 means C# 7.2 and VB 15.5 (Visual Studio 2017 version 15.5).
  • Version 2.7 means C# 7.2 and VB 15.5, but with a number of fixes (Visual Studio 2017 version 15.6).
  • Version 2.8 means C# 7.3 (Visual Studio 2017 version 15.7)
  • Version 2.9 is still C# 7.3 and VB 15.5, but with more fixes (Visual Studio 2017 version 15.8)
  • Version 2.10 is still C# 7.3 and VB 15.5, but a couple more fixes (Visual Studio 2017 version 15.9)
  • Version 3.0 includes C# 8.0 beta (Visual Studio 2019 version 16.0), but 2.11 was used for preview1.
  • Version 3.1 includes a preview of C# 8.0 (Visual Studio 2019 version 16.1)
  • Version 3.2 includes a preview of C# 8.0 (Visual Studio 2019 version 16.2)
  • Version 3.3 includes C# 8.0 (Visual Studio 2019 version 16.3, .NET Core 3.0)
  • Version 3.4 includes C# 8.0 (Visual Studio 2019 version 16.4, .NET Core 3.1)

有关语言功能,请参见 https://github.com/dotnet/csharplang/blob/master/Language-Version- History.md

For language features, see https://github.com/dotnet/csharplang/blob/master/Language-Version-History.md

这篇关于microsoft.net.compilers软件包中包含什么版本的编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆