Skip to content

Remove stale NETSDK1138 suppression (no more netcoreapp2.1 projects)#66098

Merged
wtgodbe merged 1 commit into
dotnet:mainfrom
wtgodbe:wtgodbe/remove-netsdk1138
Apr 2, 2026
Merged

Remove stale NETSDK1138 suppression (no more netcoreapp2.1 projects)#66098
wtgodbe merged 1 commit into
dotnet:mainfrom
wtgodbe:wtgodbe/remove-netsdk1138

Conversation

@wtgodbe
Copy link
Copy Markdown
Member

@wtgodbe wtgodbe commented Apr 2, 2026

NETSDK1138 warns about targeting unsupported frameworks. This was suppressing it for netcoreapp2.1, but no projects in the repo target netcoreapp2.1 anymore. CS8969 is retained as there are still 88 multi-targeting projects.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@wtgodbe wtgodbe requested a review from a team as a code owner April 2, 2026 02:03
Copilot AI review requested due to automatic review settings April 2, 2026 02:03
@github-actions github-actions Bot added the needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically 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 outdated build-warning suppression now that the repo no longer targets netcoreapp2.1, while keeping the existing suppression needed for remaining multi-targeting scenarios.

Changes:

  • Drop NETSDK1138 from the global NoWarn list in eng/Workarounds.props.
  • Keep CS8969 suppression in place.

Comment thread eng/Workarounds.props
@@ -25,9 +25,8 @@
<UseSharedCompilation>true</UseSharedCompilation>
</PropertyGroup>

Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

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

The file header requests each workaround/suppression include a tracking issue reference, but the CS8969 suppression is now unannotated. Add a brief comment explaining why CS8969 is suppressed (and ideally link to the relevant issue) so it’s clear when this can be removed.

Suggested change
<!-- Workaround for compiler warning CS8969; remove this suppression once the codebase builds clean without it. -->

Copilot uses AI. Check for mistakes.
@wtgodbe wtgodbe merged commit a2c0d51 into dotnet:main Apr 2, 2026
31 checks passed
@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

needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants