You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ dotnet --info
.NET SDK (reflecting any global.json):
Version: 5.0.402
Commit: e9d3381880
Runtime Environment:
OS Name: Mac OS X
OS Version: 12.0
OS Platform: Darwin
RID: osx-x64
Base Path: /usr/local/share/dotnet/sdk/5.0.402/
Host (useful for support):
Version: 5.0.11
Commit: f431858f8b
.NET SDKs installed:
3.1.414 [/usr/local/share/dotnet/sdk]
5.0.402 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.20 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.20 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.11 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
I installed the 5.x of dotnet-ef tool
❯ dotnet tool install --global dotnet-ef --version 5.0.12
You can invoke the tool using the following command: dotnet-ef
Tool 'dotnet-ef' (version '5.0.12') was successfully installed.
❯ dotnet tool list --global
Package Id Version Commands
--------------------------------------
dotnet-ef 5.0.12 dotnet-ef
Here is the error when invoking
❯ dotnet ef
A fatal error occurred. The required library libhostfxr.dylib could not be found.
If this is a self-contained application, that library should exist in [/Users/ayemacair/.dotnet/tools/.store/dotnet-ef/5.0.12/dotnet-ef/5.0.12/tools/netcoreapp3.1/any/].
If this is a framework-dependent application, install the runtime in the global location [/usr/local/share/dotnet/x64] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet/install_location].
The .NET runtime can be found at:
- https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=osx.11.1-x64&apphost_version=5.0.11
❯ ll /usr/local/share/dotnet/
total 336
drwxr-xr-x 10 root wheel 320 12 Nov 19:41 ./
drwxr-xr-x 3 root wheel 96 12 Nov 19:41 ../
-rw-r--r-- 1 root wheel 1116 21 Sep 13:24 LICENSE.txt
-rw-r--r-- 1 root wheel 31330 21 Sep 13:24 ThirdPartyNotices.txt
-rwxr-xr-x 1 root wheel 131424 23 Sep 12:27 dotnet*
drwxr-xr-x 3 root wheel 96 23 Sep 10:59 host/
drwxr-xr-x 6 root wheel 192 12 Nov 19:41 packs/
drwxr-xr-x 4 root wheel 128 12 Nov 19:41 sdk/
drwxr-xr-x 4 root wheel 128 12 Nov 19:41 shared/
drwxr-xr-x 4 root wheel 128 12 Nov 19:41 templates/
I also tried completely uninstalling everything and starting from the scratch using sudo ./dotnet-uninstall-pkgs.sh (script here) but I keep running into the same issue.
How do I get dotnet-ef to work on M1?
The text was updated successfully, but these errors were encountered:
File a bug
I moved from an Intel to an M1 Apple silicon recently. In the new machine
dotnet-ef
fails to run with error as shown below.visualstudioformacinstaller-8.10.13.2.dmg
sudo ./dotnet-uninstall-pkgs.sh
(script here) but I keep running into the same issue.How do I get
dotnet-ef
to work on M1?The text was updated successfully, but these errors were encountered: