Info
| Version: | 5.0.0 |
| Author(s): | Microsoft |
| Last Update: | Tuesday, November 18, 2025 |
| .NET Fiddle: | Online Example |
| Project Url: | https://github.com/dotnet/roslyn |
| NuGet Url: | https://www.nuget.org/packages/Microsoft.Net.Compilers.Toolset |
Install
Install-Package Microsoft.Net.Compilers.Toolset
dotnet add package Microsoft.Net.Compilers.Toolset
paket add Microsoft.Net.Compilers.Toolset
Microsoft.Net.Compilers.Toolset Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
Referencing this package will cause the project to be built using the C# and Visual Basic compilers contained in the package, as opposed to the version installed with MSBuild.
This package is primarily intended as a method for rapidly shipping hotfixes to customers.
Using it as a long term solution for providing newer compilers on older MSBuild installations is explicitly not supported. That can and will break on a regular basis.
The supported mechanism for providing new compilers in a build environment is updating to the newer .NET SDK or Visual Studio Build Tools SKU.
This package requires either MSBuild 16.3 and .NET Desktop 4.7.2+ or .NET Core 2.1+
More details at https://aka.ms/roslyn-packages
This package was built from the source at https://github.com/dotnet/roslyn/commit/6c4a46a31302167b425d5e0a31ea83c9a9aa1d09.