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.

[Bug] .NET 6.0 RC 1 MAUI workloads update failed.

See original GitHub issue

After installing, NET 6.0 RC 1 and updating Visual Studio 2022 to preview 4, I am trying to update the MAUI workloads to the latest versions but it failed as follows:

      _   _   _____   _____     __  __      _      _   _   ___
     | \ | | | ____| |_   _|   |  \/  |    / \    | | | | |_ _|
     |  \| | |  _|     | |     | |\/| |   / _ \   | | | |  | |
  _  | |\  | | |___    | |     | |  | |  / ___ \  | |_| |  | |
 (_) |_| \_| |_____|   |_|     |_|  |_| /_/   \_\  \___/  |___|

☼ .NET MAUI Check v0.8.6.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.11 (C:\Program Files\Microsoft\jdk-11.0.11.9-hotspot\bin\..)
  - 1.8.0-25 (C:\Program Files\Android\Jdk\microsoft_dist_openjdk_1.8.0.25)

> Visual Studio 17.0.0-pre.4.0 Checkup...
  - 17.0.0-pre.4.0 - C:\Program Files\Microsoft Visual Studio\2022\Preview

> Android SDK Checkup...
  - emulator (30.8.4)
  - 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;3.0 (3.0)

> Android Emulator Checkup...
  - Emulator: pixel_3a_xl_-_api_30 found.

> .NET SDK Checkup...
  - 3.1.413 - C:\Program Files\dotnet\sdk\3.1.413
  - 5.0.207 - C:\Program Files\dotnet\sdk\5.0.207
  - 5.0.401 - C:\Program Files\dotnet\sdk\5.0.401
  - 6.0.100-rc.1.21458.32 - C:\Program Files\dotnet\sdk\6.0.100-rc.1.21458.32

> .NET SDK - Workload Deduplication Checkup...

> Edge WebView2 Checkup...
  - Found Edge WebView2 version 93.0.961.47

> .NET SDK - Workloads (6.0.100-rc.1.21458.32) Checkup...
  - android-aot (Microsoft.NET.Sdk.Android.Manifest-6.0.100 : 31.0.100-rc.1.12) installed.
  x ios (Microsoft.NET.Sdk.iOS.Manifest-6.0.100 : 15.0.100-rc.1.1534) not installed.
  x maccatalyst (Microsoft.NET.Sdk.MacCatalyst.Manifest-6.0.100 : 15.0.100-rc.1.1534) not installed.
  - tvos (Microsoft.NET.Sdk.tvOS.Manifest-6.0.100 : 15.0.100-rc.1.1534) installed.
  - macos (Microsoft.NET.Sdk.macOS.Manifest-6.0.100 : 12.0.100-rc.1.1534) installed.
  x maui (Microsoft.NET.Sdk.Maui.Manifest-6.0.100 : 6.0.100-rc.1.1608) not installed.
  - wasm-tools (microsoft.net.workload.mono.toolchain.manifest-6.0.100 : 6.0.0-rc.1.21451.13) installed.
  - microsoft-net-sdk-emscripten (microsoft.net.workload.emscripten.manifest-6.0.100 : 6.0.0-rc.1.21430.3) installed.

─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
☼ Recommendation: Install or Update SDK Workloads
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

! Attempt to fix? [y/n] (y): y
Β» Attempting to fix: .NET SDK - Workloads (6.0.100-rc.1.21458.32)
SHELL: C:\Program Files\dotnet\dotnet.exe workload update --no-cache --disable-parallel --from-rollback-file "C:\Users\TanvirArjel\AppData\Local\Temp\maui-check-cf0ed7e1\workload.json" --source "https://api.nuget.org/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-rc.1.21458.32-shipping/nuget/v3/index.json"

Updated advertising manifest microsoft.net.sdk.android.
Updated advertising manifest microsoft.net.sdk.ios.
Updated advertising manifest microsoft.net.sdk.maccatalyst.
Updated advertising manifest microsoft.net.sdk.macos.
Updated advertising manifest microsoft.net.sdk.maui.
Updated advertising manifest microsoft.net.sdk.tvos.
Updated advertising manifest microsoft.net.workload.emscripten.
Updated advertising manifest microsoft.net.workload.mono.toolchain.
Downloading Microsoft.iOS.Sdk.Msi.x64 (15.0.100-rc.1.1531)
Downloading Microsoft.iOS.Sdk.Msi.x64 (15.0.100-rc.1.1531)
Workload installation failed. Rolling back installed packs...
Downloading microsoft.net.sdk.ios.manifest-6.0.100.msi.x64 (15.0.100-rc.1.1531)
Installation rollback failed: One or more errors occurred. (microsoft.net.sdk.ios.manifest-6.0.100.msi.x64::15.0.100-rc.1.1531 is not found in NuGet feeds https://api.nuget.org/v3/index.json;https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-rc.1.21458.32-shipping/nuget/v3/index.json".)
Workload update failed: One or more errors occurred. (microsoft.ios.sdk.msi.x64::15.0.100-rc.1.1531 is not found in NuGet feeds https://api.nuget.org/v3/index.json;https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-rc.1.21458.32-shipping/nuget/v3/index.json".)
Description:
  Update all installed workloads.

Usage:
  dotnet [options] workload update

Options:
  --configfile <FILE>                      The NuGet configuration file to use.
  -s, --source <SOURCE>                    The NuGet package source to use during the restore. To specify multiple sources, repeat the option.
  --sdk-version <VERSION>                  The version of the SDK.
  --from-cache <from-cache>                Complete the operation from cache (offline).
  --include-previews                       Allow prerelease workload manifests.
  --download-to-cache <download-to-cache>  Download packages needed to install a workload to a folder that can be used for offline installation.
  --temp-dir <temp-dir>                    Specify a temporary directory for this command to download and extract NuGet packages (must be secure).
  --from-previous-sdk                      Include workloads installed with earlier SDK versions in update.
  --advertising-manifests-only             Only update advertising manifests.
  --disable-parallel                       Prevent restoring multiple projects in parallel.
  --ignore-failed-sources                  Treat package source failures as warnings.
  --no-cache                               Do not cache packages and http requests.
  --interactive                            Allows the command to stop and wait for user input or action (for example to complete authentication).
  -v, --verbosity <LEVEL>                  Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].
  -?, -h, --help                           Show command line help.

Fix failed - Workload Update failed: `dotnet workload update --no-cache --disable-parallel --from-rollback-file "C:\Users\TanvirArjel\AppData\Local\Temp\maui-check-cf0ed7e1\workload.json" --source "https://api.nuget.org/v3/index.json"
--source "https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-rc.1.21458.32-shipping/nuget/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...

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stuartmaucommented, Sep 16, 2021

The following worked for me.

https://github.com/Redth/dotnet-maui-check/issues/105#issuecomment-898295227

β€œThe recommended fix is to manually delete everything under β€œC:\Program Files\dotnet\metadata\workloads” and then install the workloads manually followed by another run at maui-check:”

0reactions
Eiloncommented, Feb 10, 2022

Hi, we think this issue has been fixed in more recent previews of .NET MAUI and Visual Studio. Please try installing the latest preview per the instructions at https://docs.microsoft.com/dotnet/maui/get-started/installation. If you are still experiencing an issue, please file a new issue with updated details.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet workload restore for MAUI fails with .NET 7
Fails to install workloads for MAUI for .NET 7 when running in azure dev ops. I was running the same pipeline in .NET...
Read more >
NET MAUI WPF template not working
Hello. I had a problem with MAUI templates disappearing. It is not the first time it happens. I tried reinstalling several times even...
Read more >
Installing maui workload package not signed
1. unintalled all .net core sdks 2. clear all locals cache 3. insatlled .net core 6.0.102. 4. tried to launch script with administratorΒ ......
Read more >
NET MAUI in .NET 7 Release Candidate 1
Today we are excited to announce the availability of .NET Multi-platform App UI (MAUI) in .NET 7 release candidate 1 (RC1) with the...
Read more >
Search existing Azure DevOps feedback
I'm using a Microsoft Hosted Agent, and I need to add an entry to /etc/hosts file for testing. ... When I try to...
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