0

我在 Mac 上通过 ASDF v0.9.0 设置 .Net 核心,安装插件dotnet-core并设置版本 ( 3.1.416)后dotnet仍然找不到

zsh: command not found: dotnet-core

这是我的.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"

看着我看不到的可用垫片dotnet,即使我尝试重新垫片

% asdf shim-versions dotnet      
asdf: unknown shim dotnet

我想念什么?有什么提示可以指出我正确的方向吗?

4

1 回答 1

0

[在评论指出我正确的方向后回答我自己的问题]

Mac ARM架构不支持 .Net 3.1 SDK (通过 ASDF 或 .Net 二进制文件安装)。尝试使用版本6.0.101时,它按预期工作

% 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
于 2021-12-23T10:44:25.817 回答