Ich wollte ein C# Projekt in Linux kompilieren
dotnet build -r linux-x64 -f net8.0
Dabei kam der Fehler
Command 'dotnet' not found, but can be installed with: sudo apt install dotnet-host-8.0 # version 8.0.22-0ubuntu1~24.04.1, or sudo apt install dotnet-host-10.0 # version 10.0.0-0ubuntu1~24.04.1
Weil ich NET8 verwende habe ich das eingegeben
sudo sudo apt install dotnet-host-8.0
Das hat auch installiert aber wenn ich dotnet ausführe kommt jetzt das
dotnet build -r linux-x64 -f net8.0
Error: [/usr/lib/dotnet/host/fxr] does not exist Failed to resolve libhostfxr.so [not found]. Error code: 0x80008083
Wie kann ich ein dotnet 8.0 Projekt auf Linux Ubuntu kompilieren?