Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
TanvirArjel opened this issue Sep 15, 2021 · 5 comments
Closed

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

TanvirArjel opened this issue Sep 15, 2021 · 5 comments
Labels
area-setup Installation, setup, requirements, maui-check, workloads, platform support s/needs-info Issue needs more info from the author t/bug Something isn't working
Projects

Comments

@TanvirArjel
Copy link

TanvirArjel commented Sep 15, 2021

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...
@zeus2nawaz
Copy link

Same issue for me, tried to uninstall and install still doesn't resolve for me

@stuartmau
Copy link

The following worked for me.

Redth/dotnet-maui-check#105 (comment)

"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:"

@rettelex3515
Copy link

{try to fix the atc.1.2 code issue before midnight)

@Eilon Eilon added the area-setup Installation, setup, requirements, maui-check, workloads, platform support label Sep 16, 2021
@jsuarezruiz jsuarezruiz added the t/bug Something isn't working label Oct 22, 2021
@jsuarezruiz jsuarezruiz added this to New in Triage via automation Oct 22, 2021
@jsuarezruiz
Copy link
Contributor

Use the following script to remove the old workloads https://github.com/Redth/dotnet-maui-check/blob/main/Clean-Old-DotNet6-Previews.ps1 (or remove them manually C:\Program Files\dotnet\metadata\workloads)

Then install the workloads again:

dotnet workload install maui

or

dotnet workload install maui --from-rollback-file https://aka.ms/dotnet/maui/preview.10.json

@jsuarezruiz jsuarezruiz moved this from New to Needs Info in Triage Nov 12, 2021
@jsuarezruiz jsuarezruiz added the s/needs-info Issue needs more info from the author label Nov 12, 2021
@Eilon
Copy link
Member

Eilon commented 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.

@Eilon Eilon closed this as completed Feb 10, 2022
Triage automation moved this from Needs Info to Done Feb 10, 2022
@dotnet dotnet locked as resolved and limited conversation to collaborators Mar 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-setup Installation, setup, requirements, maui-check, workloads, platform support s/needs-info Issue needs more info from the author t/bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

6 participants