Skip to content

Remove unnecessary toolset compiler - #84826

Merged
jjonescz merged 1 commit into
dotnet:mainfrom
jjonescz:caching-compiler-toolset
Aug 10, 2026
Merged

jjonescz merged 1 commit into
dotnet:mainfrom
jjonescz:caching-compiler-toolset

Conversation

@jjonescz

@jjonescz jjonescz commented Aug 10, 2026 •

Copy link
Copy Markdown
Member

Toolset compiler should not be necessary anymore for the caching compiler features (since we are on .net 11 preview now).

Also fixes these warnings that appear in roslyn-CI (and locally if you have caching compiler enabled):

warning CS9057: Analyzer assembly 'D:\a\_work\1\s\.dotnet\sdk\11.0.100-preview.6.26359.118\Sdks\Microsoft.NET.Sdk\codestyle\cs\Microsoft.CodeAnalysis.CodeStyle.dll' cannot be used because it references version '5.9.0.0' of the compiler, which is newer than the currently running version '5.8.0.0'.
Microsoft Reviewers: Open in CodeFlow

Copilot AI lite review requested due to automatic review settings August 10, 2026 09:07
@jjonescz
jjonescz requested a review from a team as a code owner August 10, 2026 09:07
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the explicit Microsoft.Net.Compilers.Toolset package reference from the caching compiler props, relying on the current .NET SDK toolset instead (aligned with the repo moving to .NET 11 preview), so enabling caching compilation no longer brings in an extra compiler/toolset package.

Changes:

  • Delete the Microsoft.Net.Compilers.Toolset PackageReference from eng/targets/CachingCompiler.props.
  • Keep the caching-compiler feature/property setup (Features, PathMap, EnableSourceLink) unchanged.

@jjonescz
jjonescz marked this pull request as draft August 10, 2026 11:11
@jjonescz
jjonescz marked this pull request as ready for review August 10, 2026 11:11
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@jjonescz
jjonescz merged commit 85590d7 into dotnet:main Aug 10, 2026
30 checks passed
@jjonescz
jjonescz deleted the caching-compiler-toolset branch August 10, 2026 17:23
@jjonescz jjonescz added this to the 18.11 milestone Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants