Skip to content

Remove stale EnableSingleFileAnalyzer workaround#66112

Merged
wtgodbe merged 1 commit into
mainfrom
wtgodbe/remove-singlefile-analyzer
Apr 2, 2026
Merged

Remove stale EnableSingleFileAnalyzer workaround#66112
wtgodbe merged 1 commit into
mainfrom
wtgodbe/remove-singlefile-analyzer

Conversation

@wtgodbe
Copy link
Copy Markdown
Member

@wtgodbe wtgodbe commented Apr 2, 2026

The SDK now automatically enables EnableSingleFileAnalyzer when PublishAot=true or IsAotCompatible=true (see dotnet/sdk#31284). This manual workaround that copied EnableAOTAnalyzer to EnableSingleFileAnalyzer has been unnecessary since .NET 8.

The SDK now automatically enables EnableSingleFileAnalyzer when PublishAot=true
or IsAotCompatible=true (dotnet/sdk#31284). This manual workaround is no longer
needed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 2, 2026 14:30
@github-actions github-actions Bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Apr 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes an MSBuild workaround that manually mapped EnableAOTAnalyzer to EnableSingleFileAnalyzer, now that the .NET SDK enables EnableSingleFileAnalyzer automatically for AOT scenarios (PublishAot=true / IsAotCompatible=true).

Changes:

  • Deleted the TODO and the conditional EnableSingleFileAnalyzer property assignment in Directory.Build.targets.

@wtgodbe wtgodbe merged commit a01b1d8 into main Apr 2, 2026
31 checks passed
@wtgodbe wtgodbe deleted the wtgodbe/remove-singlefile-analyzer branch April 2, 2026 16:06
@dotnet-policy-service dotnet-policy-service Bot added this to the 11.0-preview3 milestone Apr 2, 2026
@wtgodbe wtgodbe modified the milestones: 11.0-preview3, 11.0-preview4 Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants