I have already install .net 10, abp cli cannot run on debian 12
dotnet --info
Host: Version: 10.0.8 Architecture: x64 Commit: 94ea82652c
.NET SDKs installed: 10.0.300 [/usr/share/dotnet/sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 10.0.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 10.0.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
1 Answer(s)
-
-1
- Your
abpglobal tool is running from~/.dotnet/tools/abpand is using the .NET runtime located at~/.dotnet(see “.NET location: /home/xx/.dotnet”). - In that
~/.dotnetlocation you only have .NET 8 and .NET 9 runtimes, so the tool fails when it looks forMicrosoft.NETCore.App 10.0.0. - Meanwhile your .NET 10 SDK/runtime is installed under
/usr/share/dotnet, which is not the runtime location your tool is picking up.
Fix (recommended): make the tool use the system dotnet
- Ensure your shell uses
/usr/share/dotnet(system install) instead of~/.dotnet:
which dotnet dotnet --info- If
which dotnetpoints to~/.dotnet/dotnet, fix your PATH so/usr/share/dotnetis first (example for bash):
export DOTNET_ROOT=/usr/share/dotnet export PATH=/usr/share/dotnet:$PATH hash -r- Reinstall/update ABP CLI using the same
dotnetyou’ll run it with:
dotnet tool uninstall -g Volo.Abp.Studio.Cli dotnet tool install -g Volo.Abp.Studio.Cli # or: # dotnet tool update -g Volo.Abp.Studio.Cli- Run:
abp -hAlternative fix: install .NET 10 runtime into
~/.dotnetIf you intentionally want to use the per-user dotnet (
~/.dotnet), then you must install the .NET 10 runtime into that same location so~/.dotnet/shared/Microsoft.NETCore.App/10.xexists. (Right now it doesn’t, according to your error output.)Why this happens
The ABP CLI is a .NET global tool and it runs on the runtime selected by the
dotnetresolution /DOTNET_ROOT/ PATH. In your case the tool host resolves to~/.dotnet, which doesn’t contain .NET 10.Links (validated):
- ABP CLI install/update commands: https://abp.io/docs/latest/cli/
- .NET error explanation (“You must install or update .NET…”): https://aka.ms/dotnet/app-launch-failed
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) - Your