Skip to content

Conversation

@pavelsavara
Copy link
Member

Fixes #122403

@pavelsavara pavelsavara added this to the 11.0.0 milestone Dec 10, 2025
@pavelsavara pavelsavara self-assigned this Dec 10, 2025
Copilot AI review requested due to automatic review settings December 10, 2025 20:32
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-resources
See info in area-owners.md if you want to be subscribed.

Copy link
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

This PR fixes issue #122403 by ensuring the generated mscorrc.cpp file has deterministic, sorted output when building on a Windows host. The PowerShell script now sorts resource IDs numerically before generating the C++ array.

Key Changes:

  • Added sorting of resource array keys by their numeric value (interpreted as hex) before output generation
  • Added explicit hex-to-numeric conversion for consistent formatting

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@pavelsavara pavelsavara merged commit cc7e416 into dotnet:main Dec 11, 2025
99 checks passed
@pavelsavara pavelsavara deleted the sort_mscorrc_windows branch December 11, 2025 09:34
Copy link
Member

@radekdoulik radekdoulik left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

This updates the bash counter part #122441

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[coreCLR] mscorrc.cpp is not sorted on windows build host

3 participants