Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Unable to load shared library 'hostfxr' or one of its dependencies #9047

Closed
mogocat opened this issue Aug 5, 2023 · 2 comments · Fixed by #9153
Closed

[Bug] Unable to load shared library 'hostfxr' or one of its dependencies #9047

mogocat opened this issue Aug 5, 2023 · 2 comments · Fixed by #9153
Labels
bug A bug to fix dotnet Generate .NET API reference docs

Comments

@mogocat
Copy link

mogocat commented Aug 5, 2023

Describe the bug
When I run the command docfx build docfx_project/docfx.json --serve, I got this error.

To Reproduce
I am using .Net 6.0.412 and runtime is 6.0.20. I am trying to generate the docs for my unity project. Unity version is 2021.3.7f1c1.

Expected behavior
It shows

Completed in 189.8361 milliseconds
Error: Unable to load shared library 'hostfxr' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES
environment variable: dlopen(libhostfxr, 1): image not found

But when I open the website, nothing there.
Context (please complete the following information):
MacOS 10.15.7
docfx 2.70.0

Additional context
I have found this link, but I really don't know what can I do.
microsoft/MSBuildLocator#224

Any help will be great appreciated!

@mogocat mogocat added the bug A bug to fix label Aug 5, 2023
@yufeih yufeih added the dotnet Generate .NET API reference docs label Aug 7, 2023
@YuliiaKovalova
Copy link
Member

Hi @mogocat ,

You can try to use this workaround while we are investigating the issue.
microsoft/vscode-dotnettools#120 (comment)

@YuliiaKovalova
Copy link
Member

The issue was addressed in https://www.nuget.org/packages/Microsoft.Build.Locator/1.6.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug to fix dotnet Generate .NET API reference docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants