What version of the compiler is in the microsoft.net.compilers package?

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

The .Net compiler package. A link to this package will cause the project to be built using a specific version of the C # and Visual Basic compilers contained in the package, unlike any installed version of the system.

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

On the same page it says that it supports the .NET Framework 4.5, but this is not a compiler version, is it?

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

I assume the package contains C # and vb compilers, but I am only interested in C #.

+5
source share
1 answer
  • Version 1.x means C # 6.0 (Visual Studio 2015 and updates). For example, 1.3.2 corresponds to the latest 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 of fixes (Visual Studio 2017 version 15.1).
  • Version 2.2 is still C # 7.0, but with a couple of fixes (Visual Studio 2017 version 15.2).
  • 2.3 # 7.1 (Visual Studio 2017 15.3).
  • 2.4 # 7.1 VB 15.3, (Visual Studio 2017 15.4).
  • 2.6 # 7.2 VB 15.5 (Visual Studio 2017 15.5).
  • 2.7 # 7.2 VB 15.5, (Visual Studio 2017 15.6).
  • 2.8 # 7.3 (Visual Studio 2017 15.7)
  • 2.9 - # 7.3 VB 15.5, (Visual Studio 2017 15.8)
  • 2.10 - # 7.3 VB 15.5, (Visual Studio 2017 15.9)
  • 3.0 - # 8.0 (Visual Studio 2019 16.0), 2.11.

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

, . Https://github.com/dotnet/csharplang/blob/master/Language-Version-History.md.

+9

Source: https://habr.com/ru/post/1671376/


All Articles