Skip to content

Conversation

@MatthewSteeples
Copy link

I was diagnosing an issue with our ReadyToRun assemblies and when I loaded them in ILSpy I noticed that instead of indicating which platform they were built for it was just a number.

Digging into it, I found this comment that indicates that if the binaries are machine specific then the value is xor'd with a constant (like flags).

This Pull Request displays the OS (if present).

I'm happy for the format of the text output to be changed, or any other changes for that matter!


if (!Enum.IsDefined(architecture))
{
foreach (var kvp in osMachineLookup)
Copy link
Member

Choose a reason for hiding this comment

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

I would've used tuple deconstruction syntax here for clarity

Copy link
Author

Choose a reason for hiding this comment

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

Nice suggestion. Done

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.

2 participants