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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants