When I try to run a program using dotnet I get this error:
> dotnet OmniSharp.exe
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in 'path/to/exe'.
Failed to run as a self-contained app.
I found the file libhostpolicy.so
in /usr/lib/dotnet/shared/Microsoft.NETCore.App/7.0.9/libhostpolicy.so
, so I have no idea why dotnet can't access it.
I read on here that doing this will solve it:
sudo chown -R yourusername:yourusername /path/to/exe
sudo setfacl -R -d -m u:yourusername:rwx,g:yourusername:rwx,o::r /path/to/exe
but I still get the same error.