Open trampster opened 4 months ago
It's possible to install the x64 and ARM versions of .NET on an ARM based Mac. It looks like you have the x64 runtime installed but not the x64 SDK. For some reason dotnet is deciding to run the t4
tool on the x64 runtime instead of the ARM runtime, and it is looking for the matching SDK. I have only the ARM runtime and SDK installed on my M2 Mac (no /usr/local/share/dotnet/x64
folder at all) and it works fine.
While it might be possible to work around this by falling back to checking for the ARM SDK even when running on x64, I'd prefer to figure out why it's running on the x64
runtime in the first place.
Could you paste the output of the following commands?
which dotnet
dotnet --list-runtimes
dotnet tool list -g dotnet-t4
After installing it fail to run with the following error:
The folder it is complaining about being missing /usr/local/share/dotnet/x64/sdk is indeed missing, it is there all upto the x64 but the sdk subfolder is not there I have the dotnet sdk 8.0.5 installed from here: https://dotnet.microsoft.com/en-us/download/dotnet/8.0
I do have a sdk folder in /usr/local/share/dotnet/sdk.
I have a M2 mac which is arm based so it makes sense I don't have stuff under 'x64'