Skip to main content
Microsoft.Net.Compilers.Razor.Toolset package icon

Microsoft.Net.Compilers.Razor.Toolset

.NET Compilers Razor Toolset Package. Referencing this package will cause the project to be built using the Razor compilers and source generator contained in the package, as opposed to the version installed with the SDK. 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 enviroment is updating to the newer .NET SDK or Visual Studio Build Tools SKU.

Total Downloads
8.9K
8,857
Published
May 15, 2025
Latest stable version

Install

.NET CLI
dotnet add package Microsoft.Net.Compilers.Razor.Toolset --version 9.0.0-preview.25264.2
Package Manager Console
Install-Package Microsoft.Net.Compilers.Razor.Toolset -Version 9.0.0-preview.25264.2
PackageReference
<PackageReference Include="Microsoft.Net.Compilers.Razor.Toolset" Version="9.0.0-preview.25264.2" />

Frameworks

.NETStandard2.0

Dependencies

No declared dependencies.

Adoption guide

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.