dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.99k stars 1.72k forks source link

When executing the ‘dotnet tool restore’ command on MAUI repository on mac, it prompts that the command could not be load #24535

Open rubywang01 opened 2 weeks ago

rubywang01 commented 2 weeks ago

Description

Before opening the .NET MAUI repository solution in VS Code, need to build the build tasks, but when executing the dotnet tool restore command in the terminal, it prompts that the command could not be load. This issue can repro on .NET 9.0.100-rc.1.24426.13(9.0.0-rc.1.24428.8), not repro on .NET 8.4.401(8.0.80).

Steps to Reproduce

  1. Clone dotnet/maui repro https://github.com/dotnet/maui.git on mac
  2. Open a terminal window
  3. Navigate to the location of the cloned dotnet/maui repo
  4. Run 'dotnet tool restore' command command

Link to public reproduction project repository

https://github.com/dotnet/maui.git

Version with bug

9.0.0-rc.1.24428.8

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.80 SR8

Affected platforms

macOS

Affected platform versions

Sonoma 14.6.1

Did you find any workaround?

no

Relevant log output

no
github-actions[bot] commented 2 weeks ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

jaosnz-rep commented 2 weeks ago

This issue can repro on .NET 9.0.100-rc.1.24426.13, not repro on .NET 8.0.401(8.0.80). image

PureWeen commented 1 week ago

@rubywang01

Our main branch is pinned to stable releases of .NET

https://github.com/dotnet/maui/blob/main/global.json#L11

so you'll need to install the net8 sdk in order to work with MAUI

We should update our development.md to indicate this though https://github.com/dotnet/maui/blob/main/.github/DEVELOPMENT.md#mac