-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
M1 Mac cannot find libhostfxr.dylib #21187
Comments
I recommend trying this again once RC2 is available as we've made significant changes to our Mac installer behavior. CC @vitek-karas @ericstj to see if they agree that our rc2 changes will fix this. |
Is |
That's the path of our backend that uses dotnet in the main app. |
I assume in your try you changed the TFM to Did you install any other .NET runtime/SDK on your machine (other than .NET 6 osx-arm64)? |
I am running into this error as well on a 6.0.2 version of I do see
Edit: looks like there is a workaround here: dotnet/efcore#25927. I went with the second one " Installing |
@mrlife - the workaround to install Based on the error message, this is looking for x64 runtime. Which means the process which triggered this error started as x64 process. So the question is, which process is this? And how come it's x64 if all you installed is arm64. What is the command you're trying to run which fails? |
Hi @vitek-karas, thank you for putting it in perspective. The command I was running is |
Thanks @mrlife. Just to check what the problem is, try to run the command using the following: @agocke @VSadov could one of you try to repro this on M1 hardware? |
@vitek-karas Ok, yes the first one runs fine. The second one throws the same I get
Edit: this is what I used to install the dotnet tool globally
|
@mrlife can you please try one other thing:
I want to make sure that the executable was created by the tool install process. If it's still broken after this, it should be easier for us to determine where it's broken. |
@vitek-karas I uninstalled both the local and global
Checking the architecture for |
Maybe try adding '-a arm64' to the install command... |
Awesome, this works. Would this be the official way or do you think the tool installer will be updated to detect the architecture?
|
I think this is a bug in the tool installer. Would you mind creating a new issue (it's more authentic if it comes from external user 😉). I can fill in the details on it later on. Simply put, |
Ok, all set. Thanks for working on this with me. |
|
vitek-karas. Thank you man for your effort and support I had the same issue and because of you the issue resolved. |
Hi, I'm on MacBook Air M2. I have the following issue while trying to execute a F# project:
|
@ekkaiasmith were you able to fix the issue |
Not really. I decided to install F# in a Docker container and it works perfectly. This article explains how to configure the Dockerfile: https://hamy.xyz/labs/2022-10-run-fsharp-dotnet-in-docker-console-app |
Describe the bug
I'm trying to port an app from .NET 5 to .NET 6 to support M1 Macs. I could build and publish the project fine, but when I start the app, I get the following error -
I saw other similar issues, where this issue occurs when loading .NET 5 and 6 side by side, but I only have .NET 6 on this M1 machine.
To Reproduce
Exceptions (if any)
Further technical details
dotnet --info
VS Code for Mac (ARM64) - Big Sur 11.6
dotnet --list-sdks
-6.0.100-rc.1.21458.32 [/usr/local/share/dotnet/sdk]
The text was updated successfully, but these errors were encountered: