NuGet packages

Julien Couvreur edited this page Mar 30, 2018 · 14 revisions


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).

  • Versions 1.x mean C# 6.0 and VB 14 (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 and VB 15 (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). Language version "default" was updated to mean "7.0".
  • Version 2.3 means C# 7.1 and VB 15.3 (Visual Studio 2017 version 15.3). For instance, 2.3.0-beta1 corresponds to Visual Studio 2017 version 15.3 (Preview 1).
  • 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)

See the history of C# language features for more details.

Other packages

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
Mono Mono 5.0
.Net Standard .Net Standard 2.0

The package supports multiple target frameworks, providing an implementation for older targets including PCL (moniker portable_net40+sl4+win8+wp8, where ValueTuple.dll only depends on mscorlib) and .NET Standard 1.0 (netstandard1.0). For newer targets such as net47, netstandard2.0, 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 Span<T> and 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.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.