You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One or more errors occurred. (Unable to load shared library 'hostfxr' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
Error loading shared library /usr/lib/dotnet/shared/Microsoft.NETCore.App/7.0.4/hostfxr.so: No such file or directory
Error loading shared library /root/.dotnet/tools/.store/roslynator.dotnet.cli/0.5.0/roslynator.dotnet.cli/0.5.0/tools/net7.0/any/hostfxr.so: No such file or directory
Error loading shared library hostfxr.so: No such file or directory
Error loading shared library /usr/lib/dotnet/shared/Microsoft.NETCore.App/7.0.4/libhostfxr.so: No such file or directory
Error loading shared library /root/.dotnet/tools/.store/roslynator.dotnet.cli/0.5.0/roslynator.dotnet.cli/0.5.0/tools/net7.0/any/libhostfxr.so: No such file or directory
Error loading shared library libhostfxr.so: No such file or directory
Error loading shared library /usr/lib/dotnet/shared/Microsoft.NETCore.App/7.0.4/hostfxr: No such file or directory
Error loading shared library /root/.dotnet/tools/.store/roslynator.dotnet.cli/0.5.0/roslynator.dotnet.cli/0.5.0/tools/net7.0/any/hostfxr: No such file or directory
Error loading shared library hostfxr: No such file or directory
Error loading shared library /usr/lib/dotnet/shared/Microsoft.NETCore.App/7.0.4/libhostfxr: No such file or directory
Error loading shared library /root/.dotnet/tools/.store/roslynator.dotnet.cli/0.5.0/roslynator.dotnet.cli/0.5.0/tools/net7.0/any/libhostfxr: No such file or directory
Error loading shared library libhostfxr: No such file or directory
)
Inner exception: Unable to load shared library 'hostfxr' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
Error loading shared library /usr/lib/dotnet/shared/Microsoft.NETCore.App/7.0.4/hostfxr.so: No such file or directory
Error loading shared library /root/.dotnet/tools/.store/roslynator.dotnet.cli/0.5.0/roslynator.dotnet.cli/0.5.0/tools/net7.0/any/hostfxr.so: No such file or directory
Error loading shared library hostfxr.so: No such file or directory
Error loading shared library /usr/lib/dotnet/shared/Microsoft.NETCore.App/7.0.4/libhostfxr.so: No such file or directory
Error loading shared library /root/.dotnet/tools/.store/roslynator.dotnet.cli/0.5.0/roslynator.dotnet.cli/0.5.0/tools/net7.0/any/libhostfxr.so: No such file or directory
Error loading shared library libhostfxr.so: No such file or directory
Error loading shared library /usr/lib/dotnet/shared/Microsoft.NETCore.App/7.0.4/hostfxr: No such file or directory
Error loading shared library /root/.dotnet/tools/.store/roslynator.dotnet.cli/0.5.0/roslynator.dotnet.cli/0.5.0/tools/net7.0/any/hostfxr: No such file or directory
Error loading shared library hostfxr: No such file or directory
Error loading shared library /usr/lib/dotnet/shared/Microsoft.NETCore.App/7.0.4/libhostfxr: No such file or directory
Error loading shared library /root/.dotnet/tools/.store/roslynator.dotnet.cli/0.5.0/roslynator.dotnet.cli/0.5.0/tools/net7.0/any/libhostfxr: No such file or directory
Error loading shared library libhostfxr: No such file or directory
The text was updated successfully, but these errors were encountered:
I'm pretty sure the root cause is described here: microsoft/MSBuildLocator#210
In the SDK this was resolved (As described in the issue above) by passing a variable from the host to the SDK, which then uses it to load the same hostfxr as the host used to start the SDK. Microsoft.Build.Locator should use the same logic.
Describe the bug
The bug (+ repro case) is in this repository but we think it has more to do with the dotnet SDK: dotnet/roslynator#1060
Following these steps you are supposed to be able to run any tool installed with
dotnet tool install
:https://learn.microsoft.com/en-us/dotnet/core/install/linux-alpine#install-net-7
But the reality is that with Roslynator it doesn't work: https://www.nuget.org/packages/Roslynator.DotNet.Cli
The text was updated successfully, but these errors were encountered: