未找到dotnet核心命令



我正在设置。在Mac上通过ASDF v0.9.0的Net core,在安装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

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

[在评论后回答我自己的问题,为我指明了正确的方向]

。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

相关内容

  • 没有找到相关文章

最新更新