I am setting up .Net core via ASDF v0.9.0 on Mac, after installing dotnet-core
plugin and setting a version (3.1.416
) dotnet
is still not found
zsh: command not found: dotnet-core
Here is my .zshrc
alias rbrew="/usr/local/bin/brew"
. /opt/homebrew/opt/asdf/libexec/asdf.sh
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
Looking at the available shims I don't see dotnet
, even if I try to reshim
% asdf shim-versions dotnet
asdf: unknown shim dotnet
What do I miss? Any hint to point me in the right direction?
[Answering my own question after comments pointed me in the right direction]
The .Net 3.1 SDK is not supported on Mac ARM architecture (either installing via ASDF or .Net binaries). When trying with version 6.0.101
it works as expected
% asdf install dotnet-core 6.0.101
Downloading the CLI installer
Installing the CLI requested version 6.0.101. Please wait, installation may take a few minutes.
...
Installation finished successfully.
% asdf local dotnet-core 6.0.101
% dotnet --version
6.0.101