使用maui-check检查MAUI兼容性时,如何判断错误在哪里?
How do I determine where the error is when I check MAUI compatibility with maui-check?
我使用 maui-check
检查 .NET MAUI 兼容性。尽管控制台屏幕显示 查看错误并更正,但我没有看到任何错误。
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)
。
尽管(目前)还没有真正沟通过,但您实际上应该不再需要 maui-check 了。我认为它会转变为您仍然可以用来检查 .NET MAUI 的先决条件的东西,但现在它可能会给您带来一些困惑,因为它尚未更新。
如果输出没有错误我相信。它可能会与混合最终结果的 .NET 6 GA 版本混淆。你真的尝试过运行吗?
如果没有,您应该能够使用
安装 .NET MAUI 工作负载
dotnet workload install maui
我认为模板应该作为其中的一部分,但如果没有,运行
dotnet new -i Microsoft.Maui.Templates
然后您可以使用
创建一个新应用
dotnet new maui -n MyApp
我使用 maui-check
检查 .NET MAUI 兼容性。尽管控制台屏幕显示 查看错误并更正,但我没有看到任何错误。
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)
。
尽管(目前)还没有真正沟通过,但您实际上应该不再需要 maui-check 了。我认为它会转变为您仍然可以用来检查 .NET MAUI 的先决条件的东西,但现在它可能会给您带来一些困惑,因为它尚未更新。
如果输出没有错误我相信。它可能会与混合最终结果的 .NET 6 GA 版本混淆。你真的尝试过运行吗?
如果没有,您应该能够使用
安装 .NET MAUI 工作负载dotnet workload install maui
我认为模板应该作为其中的一部分,但如果没有,运行
dotnet new -i Microsoft.Maui.Templates
然后您可以使用
创建一个新应用dotnet new maui -n MyApp