I'm trying to run a game called Beneath the Nexus through Wine. The game said I needed .NET Desktop Runtime 5, so I downloaded the Windows installer and installed it. However when running the actual game, I get the following error message:

Message: A fatal error occurred, the required library hostfxr.dll could not be found in [Z:\usr\share\dotnet\host\fxr\5.0.7]

when I run find . | grep hostfxr in my .wine prefix, it finds the right DLL in a few places:

./drive_c/Program Files/dotnet/host/fxr/5.0.7/hostfxr.dll
./drive_c/Program Files (x86)/dotnet/host/fxr/5.0.7/hostfxr.dll

How can I make the game find these DLLs instead of looking in my /usr/share?

1 Answer 1


I was able to get the installer working by copying the DLL into the location of the .exe. Not sure why I had to do that, but it worked:

cd ./path/to/game
cp ~/.wine/drive_c/Program\ Files/dotnet/host/fxr/5.0.7/hostfxr.dll .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.