我有 ubuntu 服务器 18.04.3 amd64。这是我安装 .net core 3 的脚本:
curl -SL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/master/dotnet-sdk-latest-linux-arm64.tar.gz
sudo mkdir -p /usr/share/dotnet
sudo tar -zxf dotnet.tar.gz -C /usr/share/dotnet
sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
这是我的目标框架:
<TargetFramework>netcoreapp3.0</TargetFramework>
当我尝试运行我的项目时出现错误dotnet run
或dotnet build
出现:
-bash: /usr/bin/dotnet: cannot execute binary file: Exec format error
谢谢