1

maui-check用来检查 .NET MAUI 的兼容性。即使控制台屏幕显示review the errors and correct,我也没有看到任何错误。

user@macbook ~ % maui-check                           
      _   _   _____   _____     __  __      _      _   _   ___                                           
     | \ | | | ____| |_   _|   |  \/  |    / \    | | | | |_ _|                                          
     |  \| | |  _|     | |     | |\/| |   / _ \   | | | |  | |                                           
  _  | |\  | | |___    | |     | |  | |  / ___ \  | |_| |  | |                                           
 (_) |_| \_| |_____|   |_|     |_|  |_| /_/   \_\  \___/  |___|                                          
                                                                                                         
 .NET MAUI Check v0.10.0.0 
─────────────────────────────────────────────────────────────────────────────────────────────────────────
This tool will attempt to evaluate your .NET MAUI development environment.
If problems are detected, this tool may offer the option to try and fix them for you, or suggest a way to
fix them yourself.

Thanks for choosing .NET MAUI!
─────────────────────────────────────────────────────────────────────────────────────────────────────────
⏳ Synchronizing configuration... ok
⏳ Scheduling appointments... ok

 OpenJDK 11.0 Checkup...
  ✔ 11.0.10 (/Library/Java/JavaVirtualMachines/microsoft-11.jdk/Contents/Home/bin/..)

 Visual Studio 8.10.0 Checkup...

 Android SDK Checkup...
  ✔ emulator (30.9.5)
  ✔ build-tools;31.0.0 (31.0.0)
  ✔ platforms;android-31 (1)
  ✔ system-images;android-31;google_apis;x86_64 (8)
  ✔ platform-tools (31.0.3)
  ✔ cmdline-tools;5.0 (5.0)

 Android Emulator Checkup...
  ✔ Emulator: Android_Emulator_31 found.

 XCode 13.1 Checkup...

 .NET SDK Checkup...
  ✔ 6.0.100 - /usr/local/share/dotnet/sdk/6.0.100

 .NET SDK - Workload Deduplication Checkup...

 .NET SDK - EnableWorkloadResolver.sentinel Checkup...

 .NET SDK - Workloads (6.0.100) Checkup...
  ✔ android-aot (Microsoft.NET.Sdk.Android.Manifest-6.0.100 : 31.0.101-preview.10.59) installed.
  ✔ ios (Microsoft.NET.Sdk.iOS.Manifest-6.0.100 : 15.0.101-preview.10.251) installed.
  ✔ maccatalyst (Microsoft.NET.Sdk.MacCatalyst.Manifest-6.0.100 : 15.0.101-preview.10.251) installed.
  ✔ tvos (Microsoft.NET.Sdk.tvOS.Manifest-6.0.100 : 15.0.101-preview.10.251) installed.
  ✔ macos (Microsoft.NET.Sdk.macOS.Manifest-6.0.100 : 12.0.101-preview.10.251) installed.
  ✔ maui (Microsoft.NET.Sdk.Maui.Manifest-6.0.100 : 6.0.101-preview.10.2068) installed.
  ✔ wasm-tools (microsoft.net.workload.mono.toolchain.manifest-6.0.100 : 6.0.0) installed.
  ✔ microsoft-net-sdk-emscripten (microsoft.net.workload.emscripten.manifest-6.0.100 : 6.0.0) installed.
─────────────────────────────────────────────────────────────────────────────────────────────────────────


 There were one or more problems detected.
Please review the errors and correct them and run maui-check again.

Press enter to exit...

你们能建议我一种方法吗?

环境信息:芯片上macOS Monterey,.M1.NET 6.0 (LTS)

4

1 回答 1

1

虽然它还没有真正沟通(还)你不应该真的需要 maui-check 了。我认为它将被转换为您仍然可以用来检查 .NET MAUI 的先决条件的东西,但现在它可能会给您带来一些混乱,因为它还没有更新。

如果输出中没有错误,我会相信这一点。它可能会与混淆最终结果的 .NET 6 GA 版本混淆。你真的试图运行一些东西吗?

如果还没有,您应该能够安装 .NET MAUI 工作负载

dotnet workload install maui

我认为模板应该是其中的一部分,但如果不是,请运行

dotnet new -i Microsoft.Maui.Templates

然后你可以创建一个新的应用程序

dotnet new maui -n MyApp

于 2021-11-09T09:09:15.337 回答