question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix failed - Workload Install failed: `dotnet workload install --from-rollback-file "C:\Users\User\AppData\Local\Temp\maui-check-db890925\workload.json" android-aot ios maccatalyst tvos macos maui --source "https://api.nuget.org/v3/index.json"`

See original GitHub issue

Recommendation: Install or Update SDK Workloads ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ! Attempt to fix? [y/n] (y): y » Attempting to fix: .NET SDK - Workloads (6.0.200) SHELL: C:\Program Files\dotnet\dotnet.exe workload install --from-rollback-file “C:\Users\User\AppData\Local\Temp\maui-check-db890925\workload.json” android-aot ios maccatalyst tvos macos maui --source “https://api.nuget.org/v3/index.json” Workload ID android-aot is not recognized. Fix failed - Workload Install failed: dotnet workload install --from-rollback-file "C:\Users\User\AppData\Local\Temp\maui-check-db890925\workload.json" android-aot ios maccatalyst tvos macos maui --source "https://api.nuget.org/v3/index.json" ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

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

Press enter to exit…

I get above error from the CMD. How can I fix it?

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:6
  • Comments:11

github_iconTop GitHub Comments

8reactions
ghostcommented, Jun 8, 2022

Same problem here.

Some version information, if it helps troubleshoot:

maui-check v0.10.0.0 MacBook Pro (14-inch, 2021) macOS 12.4 Apple M1 Pro.

Attached some screenshots as well, to verify I’m not doing anything horribly stupid.

For what it’s worth, I use Rider and I’m following the instructions here: https://blog.jetbrains.com/dotnet/2022/05/25/macos-environment-setup-for-maui-development Screenshot 2022-06-08 at 14 54 38 Screenshot 2022-06-08 at 14 54 55 /

0reactions
brijcharancommented, Mar 2, 2023

Ya I ended up doing that too. Thought VS is not as nice as coding in Rider. I think rider has improved this workflow, so hoping to try it soon. But microsoft has been moving faster with the tools to support maui dev.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Workload Repair failed: `dotnet workload repair - MAUI
open the terminal, run as administrator. List item $ dotnet workload list; List item. $ dotnet workload install maui. List item.
Read more >
Troubleshoot known issues - .NET MAUI
Learn about .NET MAUI known issues and troubleshooting you can do to resolve these issues.
Read more >
dotnet workload install command - .NET CLI
For macOS and Linux SDK installations that are installed to a protected directory, the command needs to run elevated (use the sudo command)....
Read more >
MAUI install in Azure Pipelines : r/dotnetMAUI
I do 'dotnet workload install maui-ios maui-android' and it takes just a couple minutes. Upvote 1
Read more >
How to use the .NET CLI clean-up tools on macOS
In this post, I will show you how to use the .NET CLI tools on macOS to clean-up installed SDKs, runtimes, workloads, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found