Skip to content

Conversation

@edwardneal
Copy link
Contributor

@edwardneal edwardneal commented Dec 10, 2025

Description

This cleanup builds on the initial split of System.Data.SqlClient from the rest of netfx. Various methods within the codebase were decorated with [ResourceExposure] and [ResourceConsumption].

These attributes were in turn decorated with [Conditional("RESOURCE_ANNOTATION_WORK")], which means that they were never compiled into the finished binary unless that conditional compilation symbol was set. It's only set for debug builds, so we don't need to include the attributes. Doing so also removes some unnecessary netfx-specific conditional compilation.

Issues

None.

Testing

Test cases continue to pass.

@edwardneal edwardneal requested a review from a team as a code owner December 10, 2025 00:02
@priyankatiwari08 priyankatiwari08 self-assigned this Dec 10, 2025
@paulmedynski
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@paulmedynski paulmedynski self-assigned this Dec 11, 2025
Copy link
Contributor

@paulmedynski paulmedynski left a comment

Choose a reason for hiding this comment

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

One question about the csproj files.

This is never set in Release configuration.
System; System.Runtime.Serialization; System.Security; System.Data; System.Xml; System.Runtime.Caching.
Copy link
Contributor

@paulmedynski paulmedynski left a comment

Choose a reason for hiding this comment

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

Looks great! I love a good deletion PR.

@paulmedynski
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@github-actions
Copy link

This pull request has been marked as stale due to inactivity for more than 30 days.

If you would like to keep this pull request open, please provide an update or respond to any comments. Otherwise, it will be closed automatically in 7 days.

@github-actions github-actions bot added the Stale The Issue or PR has become stale and will be automatically closed shortly if no activity occurs. label Jan 11, 2026
@edwardneal
Copy link
Contributor Author

This PR is not stale.

@github-actions github-actions bot removed the Stale The Issue or PR has become stale and will be automatically closed shortly if no activity occurs. label Jan 12, 2026
@cheenamalhotra cheenamalhotra added the Code Health 💊 Issues/PRs that are targeted to source code quality improvements. label Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Code Health 💊 Issues/PRs that are targeted to source code quality improvements.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants