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

Microsoft.Net.Sdk.Compilers.Toolset

Transport package for Microsoft.Net.Compilers.Toolset.Framework assemblies. For internal use only: do not reference this package directly as it is explicitly not supported in that fashion. This package is automatically downloaded when your MSBuild version does not match your SDK version. Then the package is used to build your project with the compiler version matching your SDK version instead of the one bundled with MSBuild. If you want to download this package using the dotnet CLI, you can use the following command: ``` dotnet restore /p:BuildWithNetFrameworkHostedCompiler=true ``` If you want to disable automatic download and use of this package, set property `BuildWithNetFrameworkHostedCompiler` to `false` (for example, in your `.csproj` or `Directory.Build.props` file). However, be aware that you will be building with mismatched compiler and SDK versions. That is explicitly not supported and can lead to errors (especially with analyzers and source generators).

Total Downloads
3.0M
3,032,732
Published
Apr 8, 2025
Latest stable version

Install

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

Frameworks

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

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.