error when running dotnet-host-9.0

as title mentions i used pkg to install dotnet-host-9.0 but running any type of command gets the following error error: [/data/data/com.termux/files/usr/lib/dotnet/host/fxr] does not exist i tried ~ $ dotnet -list-runtimes Error: [/data/data/com.termux/files/usr/lib/dotnet/host/fxr] does not exist ~ $ dotnet -list-sdks Error: [/data/data/com.termux/files/usr/lib/dotnet/host/fxr] does not exist and running a dll results in the same error ~/Resonite $ dotnet Resonite.dll Error: [/data/data/com.termux/files/usr/lib/dotnet/host/fxr] does not exist reinstalling doesnt seem to fix the issue
1 Reply
LolPopGames
LolPopGames3w ago
dotnet-host-9.0 is only the host. You also need runtime and SDK. The packages are named dotnet-runtime-9.0 and dotnet-sdk-9.0. If you don't know if you installed them, check with:
$ pkg list-installed | grep "dotnet"
$ pkg list-installed | grep "dotnet"
If there's only dotnet-host-9.0, run
$ pkg install dotnet-runtime-9.0 dotnet-sdk-9.0
$ pkg install dotnet-runtime-9.0 dotnet-sdk-9.0
p.s. SDK is optional

Did you find this page helpful?