Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
A number of NuGet packages are published from the Roslyn repo. New packages are published when Visual Studio releases a new RTM or Preview version.
This package not only includes the C# and Visual Basic compilers, it also modifies MSBuild targets so that the included compiler versions are used rather than any system-installed versions. Once installed, this package requires Microsoft Build Tools 2015.
Below are the versions of the language available in the NuGet packages. Remember to set a specific language version (or "latest") if you want to use one that is newer than "default" (ie. latest major version).
1.xmean C# 6.0 and VB 14 (Visual Studio 2015 and updates). For instance,
1.3.2corresponds to the most recent update (update 3) of Visual Studio 2015.
2.0means C# 7.0 and VB 15 (Visual Studio 2017 version 15.0).
2.1is still C# 7.0, but with a couple fixes (Visual Studio 2017 version 15.1).
2.2is still C# 7.0, but with a couple more fixes (Visual Studio 2017 version 15.2). Language version "default" was updated to mean "7.0".
2.3means C# 7.1 and VB 15.3 (Visual Studio 2017 version 15.3). For instance,
2.3.0-beta1corresponds to Visual Studio 2017 version 15.3 (Preview 1).
2.4is still C# 7.1 and VB 15.3, but with a couple fixes (Visual Studio 2017 version 15.4).
2.6means C# 7.2 and VB 15.5 (Visual Studio 2017 version 15.5).
2.7means C# 7.2 and VB 15.5, but with a number of fixes (Visual Studio 2017 version 15.6).
2.8means C# 7.3 (Visual Studio 2017 version 15.7)
2.9is still C# 7.3 and VB 15.5, but with more fixes (Visual Studio 2017 version 15.8)
See the history of C# language features for more details.
A few other packages are relevant or related to Roslyn, but are not produced from the Roslyn repo.
To facilitate adoption of C# 7.0 and VB 15 tuples, the required underlying types were made available as a standalone package (see ValueTuple on NuGet). But those types were progressively built into newer versions of the different .NET frameworks.
|Version that includes ValueTuple|
|Full/desktop framework||.NET Framework 4.7 and Windows 10 Creators Edition Update (RS2)|
|Core||.NET Core 2.0|
|.Net Standard||.Net Standard 2.0|
The package supports multiple target frameworks, providing an implementation for older targets including PCL (moniker
ValueTuple.dll only depends on
mscorlib) and .NET Standard 1.0 (
For newer targets such as
netcoreapp2.0, the package provides type forwards to the in-box implementation.
The above describes version 4.4.0 of the ValueTuple package. The package is produced from the corefx repo.
This package will contain ref-like implementations of
ReadOnlySpan<T> that work with C# 7.2 ref features.
This package is produced by the ASP.NET team. You can find it here on NuGet.