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 find dotnet SDKs on macOS 13.3.1 #8753

Closed
wh1337 opened this issue May 8, 2023 · 2 comments
Closed

[Bug] Unable to find dotnet SDKs on macOS 13.3.1 #8753

wh1337 opened this issue May 8, 2023 · 2 comments
Labels
bug A bug to fix dotnet Generate .NET API reference docs

Comments

@wh1337
Copy link

wh1337 commented May 8, 2023

Describe the bug
When attempting to run any docfx command other than docfx init, it fails stating that it cannot find any SDKs.

To Reproduce
Steps to reproduce the behavior:

  1. docfx init
  2. docfx
  3. << error >>
❯ docfx
No .NET SDKs were found.

Download a .NET SDK:
https://aka.ms/dotnet/download

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
Completed in 204.5029 milliseconds
Error: Failed to find an appropriate version of .NET Core MSBuild. Call to hostfxr_resolve_sdk2 failed. There may be more details in stderr.

Expected behavior
To run docfx commands to build documentation.

Context (please complete the following information):

  • OS: MacOS 13.3.1
  • Docfx version: 2.67.0

Additional context
dotnet --list-sdks output:

❯ dotnet --list-sdks
7.0.203 [/usr/local/share/dotnet/sdk]

Full error message:

❯ docfx
No .NET SDKs were found.

Download a .NET SDK:
https://aka.ms/dotnet/download

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
Completed in 204.5029 milliseconds
Error: Failed to find an appropriate version of .NET Core MSBuild. Call to hostfxr_resolve_sdk2 failed. There may be more details in stderr.
@wh1337 wh1337 added the bug A bug to fix label May 8, 2023
@yufeih
Copy link
Contributor

yufeih commented May 9, 2023

@yufeih yufeih added the dotnet Generate .NET API reference docs label May 9, 2023
@filzrev
Copy link
Contributor

filzrev commented Nov 16, 2023

This issue seems to be resolved in recent docfx version. (By updating MSBuildLocator)

@yufeih yufeih closed this as completed Nov 16, 2023
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

No branches or pull requests

3 participants