Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: Show correct arm64 architecture #320

Merged
merged 7 commits into from
Jan 25, 2025
Merged

macOS: Show correct arm64 architecture #320

merged 7 commits into from
Jan 25, 2025

Conversation

edvilme
Copy link
Member

@edvilme edvilme commented Jan 23, 2025

Closes #297 #221
When listing runtimes and sdk's on arm Macs, the architecture should be displayed as arm64 instead of x64.

Currently this is not figured out on a by version lookup, but based on the first directory on the sdk installs directory

list
image

dry-run
image

@edvilme edvilme marked this pull request as ready for review January 24, 2025 20:12
@edvilme edvilme requested a review from Forgind January 24, 2025 21:20
@edvilme edvilme changed the title Show correct arm64 architecture macOS: Show correct arm64 architecture Jan 24, 2025
Copy link
Member

@Forgind Forgind left a comment

Choose a reason for hiding this comment

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

How have you tested this? I don't see code changes that I have a problem with, but I don't know without testing whether this is sufficient or not, and I don't have an M1 mac for testing myself.

@edvilme
Copy link
Member Author

edvilme commented Jan 24, 2025

Yes, tested this on an M1 Mac VM with several arm64 and one x64 sdks installed. I'm also ok with performing more tests (installing the x64 version first as it seems to have an effect on the current implementation) beforehand :)

Comment on lines +40 to +43
DotNetRuntimeInstallPath(EmulatedDotNetInstallPath),
DotNetAspAllInstallPath(EmulatedDotNetInstallPath),
DotNetAspAppInstallPath(EmulatedDotNetInstallPath),
DotNetHostFxrInstallPath(EmulatedDotNetInstallPath)));
Copy link
Member Author

Choose a reason for hiding this comment

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

This was also addressed in #228

@edvilme edvilme merged commit 802fef7 into main Jan 25, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants