Skip to content

Conversation

@h3xds1nz
Copy link
Member

@h3xds1nz h3xds1nz commented Oct 1, 2024

Description

This is a follow-up to #9711, cleaning up the dead code from assemblies that are compiled for .NET Core only.
The PBT one has been kept for obvious reasons.

The effective process is removing the switch statement, values for NetFX and copying over contents of InitializeNetFxSwitchDefaultsForNetCoreRuntime directly into the partial method.

I have also removed the warning supressions where they were not necessary.

Customer Impact

Smaller size of assemblies, 0.0001 ns faster start up time, cleaner codebase for developers.

Regression

No.

Testing

Local build, app startup.

Risk

Low, this is just a cleanup after previous PR.

Microsoft Reviewers: Open in CodeFlow

@h3xds1nz h3xds1nz requested review from a team as code owners October 1, 2024 12:31
@dotnet-policy-service dotnet-policy-service bot added PR metadata: Label to tag PRs, to facilitate with triage Community Contribution A label for all community Contributions labels Oct 1, 2024
@harshit7962 harshit7962 self-assigned this Oct 23, 2024
@dotnet-policy-service dotnet-policy-service bot added 📭 waiting-author-feedback To request more information from author. and removed 📭 waiting-author-feedback To request more information from author. labels Oct 24, 2024
harshit7962
harshit7962 previously approved these changes Oct 25, 2024
@harshit7962 harshit7962 merged commit 24105c1 into dotnet:main Nov 8, 2024
8 checks passed
@harshit7962
Copy link
Member

@h3xds1nz Thank you for the contribution.

@h3xds1nz
Copy link
Member Author

@harshit7962 Thank you!

@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants