dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.28k stars 1.76k forks source link

Unable to install Microsoft.Maui.Sdk.Msi.x64 during workload install dotnet 7.0.100 sdk #12030

Closed alfkonee closed 1 year ago

alfkonee commented 1 year ago

Description

Unable to install .NET MAUI

Steps to Reproduce

Install dotnet sdk 7.0.100 and run dotnet workload install maui

Link to public reproduction project repository

NA

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

All

Did you find any workaround?

Use Sdk v 6.0.403

Relevant log output

dotnet workload install maui --source https://api.nuget.org/v3/index.json -v d

Checking for updated workload manifests.
[NuGet Manager] [Info]   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.sdk.android.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.sdk.ios.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.sdk.maccatalyst.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.sdk.macos.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.sdk.maui.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.sdk.tvos.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.workload.mono.toolchain.net6.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.workload.mono.toolchain.net7.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.workload.emscripten.net6.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.workload.emscripten.net7.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   OK https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.workload.emscripten.net6.manifest-7.0.100.msi.x64/index.json 704ms
[NuGet Manager] [Info]   OK https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.sdk.android.manifest-7.0.100.msi.x64/index.json 819ms
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.android.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.workload.emscripten.net6.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   OK https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.sdk.maccatalyst.manifest-7.0.100.msi.x64/index.json 1117ms
[NuGet Manager] [Info]   OK https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.sdk.tvos.manifest-7.0.100.msi.x64/index.json 1106ms
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.maccatalyst.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   OK https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.workload.mono.toolchain.net6.manifest-7.0.100.msi.x64/index.json 1103ms
[NuGet Manager] [Info]   OK https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.sdk.ios.manifest-7.0.100.msi.x64/index.json 1128ms
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.tvos.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   OK https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.sdk.macos.manifest-7.0.100.msi.x64/index.json 1120ms
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.workload.mono.toolchain.net6.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   OK https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.sdk.maui.manifest-7.0.100.msi.x64/index.json 1116ms
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.ios.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.macos.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.maui.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   OK https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.workload.emscripten.net7.manifest-7.0.100.msi.x64/index.json 1084ms
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.workload.emscripten.net7.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   OK https://api.nuget.org/v3/registration5-gz-semver2/microsoft.net.workload.mono.toolchain.net7.manifest-7.0.100.msi.x64/index.json 1093ms
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.workload.mono.toolchain.net7.manifest-7.0.100.msi.x64/index.json
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.workload.emscripten.net6.manifest-7.0.100.msi.x64/index.json 589ms
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.android.manifest-7.0.100.msi.x64/index.json 598ms
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.android.manifest-7.0.100.msi.x64/33.0.4/microsoft.net.sdk.android.manifest-7.0.100.msi.x64.33.0.4.nupkg
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.workload.emscripten.net6.manifest-7.0.100.msi.x64/7.0.0/microsoft.net.workload.emscripten.net6.manifest-7.0.100.msi.x64.7.0.0.nupkg
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.android.manifest-7.0.100.msi.x64/33.0.4/microsoft.net.sdk.android.manifest-7.0.100.msi.x64.33.0.4.nupkg 75ms
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.workload.emscripten.net6.manifest-7.0.100.msi.x64/7.0.0/microsoft.net.workload.emscripten.net6.manifest-7.0.100.msi.x64.7.0.0.nupkg 81ms
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.maccatalyst.manifest-7.0.100.msi.x64/index.json 587ms
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.maccatalyst.manifest-7.0.100.msi.x64/15.4.2372/microsoft.net.sdk.maccatalyst.manifest-7.0.100.msi.x64.15.4.2372.nupkg
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.ios.manifest-7.0.100.msi.x64/index.json 592ms
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.macos.manifest-7.0.100.msi.x64/index.json 590ms
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.macos.manifest-7.0.100.msi.x64/12.3.2372/microsoft.net.sdk.macos.manifest-7.0.100.msi.x64.12.3.2372.nupkg
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.tvos.manifest-7.0.100.msi.x64/index.json 599ms
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.workload.mono.toolchain.net6.manifest-7.0.100.msi.x64/index.json 598ms
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.tvos.manifest-7.0.100.msi.x64/16.0.1478/microsoft.net.sdk.tvos.manifest-7.0.100.msi.x64.16.0.1478.nupkg
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.workload.mono.toolchain.net6.manifest-7.0.100.msi.x64/7.0.0/microsoft.net.workload.mono.toolchain.net6.manifest-7.0.100.msi.x64.7.0.0.nupkg
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.maui.manifest-7.0.100.msi.x64/index.json 596ms
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.maui.manifest-7.0.100.msi.x64/7.0.49/microsoft.net.sdk.maui.manifest-7.0.100.msi.x64.7.0.49.nupkg
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.ios.manifest-7.0.100.msi.x64/16.0.1478/microsoft.net.sdk.ios.manifest-7.0.100.msi.x64.16.0.1478.nupkg
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.workload.emscripten.net7.manifest-7.0.100.msi.x64/index.json 609ms
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.workload.emscripten.net7.manifest-7.0.100.msi.x64/7.0.0/microsoft.net.workload.emscripten.net7.manifest-7.0.100.msi.x64.7.0.0.nupkg
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.workload.mono.toolchain.net7.manifest-7.0.100.msi.x64/index.json 593ms
[NuGet Manager] [Info]   GET https://api.nuget.org/v3-flatcontainer/microsoft.net.workload.mono.toolchain.net7.manifest-7.0.100.msi.x64/7.0.0/microsoft.net.workload.mono.toolchain.net7.manifest-7.0.100.msi.x64.7.0.0.nupkg
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.maccatalyst.manifest-7.0.100.msi.x64/15.4.2372/microsoft.net.sdk.maccatalyst.manifest-7.0.100.msi.x64.15.4.2372.nupkg 77ms
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.macos.manifest-7.0.100.msi.x64/12.3.2372/microsoft.net.sdk.macos.manifest-7.0.100.msi.x64.12.3.2372.nupkg 75ms
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.tvos.manifest-7.0.100.msi.x64/16.0.1478/microsoft.net.sdk.tvos.manifest-7.0.100.msi.x64.16.0.1478.nupkg 78ms
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.maui.manifest-7.0.100.msi.x64/7.0.49/microsoft.net.sdk.maui.manifest-7.0.100.msi.x64.7.0.49.nupkg 78ms
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.workload.mono.toolchain.net6.manifest-7.0.100.msi.x64/7.0.0/microsoft.net.workload.mono.toolchain.net6.manifest-7.0.100.msi.x64.7.0.0.nupkg 84ms
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.sdk.ios.manifest-7.0.100.msi.x64/16.0.1478/microsoft.net.sdk.ios.manifest-7.0.100.msi.x64.16.0.1478.nupkg 84ms
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.workload.emscripten.net7.manifest-7.0.100.msi.x64/7.0.0/microsoft.net.workload.emscripten.net7.manifest-7.0.100.msi.x64.7.0.0.nupkg 76ms
[NuGet Manager] [Info]   OK https://api.nuget.org/v3-flatcontainer/microsoft.net.workload.mono.toolchain.net7.manifest-7.0.100.msi.x64/7.0.0/microsoft.net.workload.mono.toolchain.net7.manifest-7.0.100.msi.x64.7.0.0.nupkg 78ms
Updated advertising manifest microsoft.net.sdk.android.
Updated advertising manifest microsoft.net.workload.emscripten.net6.
Updated advertising manifest microsoft.net.sdk.maui.
Updated advertising manifest microsoft.net.sdk.tvos.
Updated advertising manifest microsoft.net.sdk.maccatalyst.
Updated advertising manifest microsoft.net.sdk.macos.
Updated advertising manifest microsoft.net.sdk.ios.
Updated advertising manifest microsoft.net.workload.mono.toolchain.net6.
Updated advertising manifest microsoft.net.workload.mono.toolchain.net7.
Updated advertising manifest microsoft.net.workload.emscripten.net7.
Installing Maui.Core.Ref.android.7.0.52.0-x64.msi .................. Done
Installing Maui.Core.Runtime.android.7.0.52.0-x64.msi .... Done
Installing Maui.Controls.Ref.android.7.0.52.0-x64.msi .... Done
Installing Maui.Controls.Runtime.android.7.0.52.0-x64.msi ..... Done
Installing Maui.Essentials.Ref.android.7.0.52.0-x64.msi .... Done
Installing Maui.Essentials.Runtime.android.7.0.52.0-x64.msi .... Done
Installing AspNetCore.WebView.Maui.7.0.52.0-x64.msi .... Done
Installing Maui.Sdk.7.0.52.0-x64.msi ..... Done
Downloading Microsoft.Maui.Sdk.Msi.x64 (6.0.548)
[NuGet Manager] [Info]   GET https://api.nuget.org/v3/registration5-gz-semver2/microsoft.maui.sdk.msi.x64/index.json
[NuGet Manager] [Info]   OK https://api.nuget.org/v3/registration5-gz-semver2/microsoft.maui.sdk.msi.x64/index.json 205ms
Workload installation failed. Rolling back installed packs...
Removing Maui.Sdk.7.0.52.0-x64.msi ..... Done
Removing AspNetCore.WebView.Maui.7.0.52.0-x64.msi ..... Done
Removing Maui.Essentials.Runtime.android.7.0.52.0-x64.msi .... Done
Removing Maui.Essentials.Ref.android.7.0.52.0-x64.msi .... Done
Removing Maui.Controls.Runtime.android.7.0.52.0-x64.msi .... Done
Removing Maui.Controls.Ref.android.7.0.52.0-x64.msi .... Done
Removing Maui.Core.Runtime.android.7.0.52.0-x64.msi .... Done
Removing Maui.Core.Ref.android.7.0.52.0-x64.msi .... Done
Workload installation failed: One or more errors occurred. (microsoft.maui.sdk.msi.x64::6.0.548 is not found in NuGet feeds https://api.nuget.org/v3/index.json".)
jfversluis commented 1 year ago

Hi there, thanks for the report! Is there any specific reason you're installing this through the CLI? Have you also installed VS? This is typically the preferred way to add the .NET MAUI workload.

It seems that somehow you're getting a wrong version through which is not the current stable version that has been released. And because not all of the versions that are being linked are on the public NuGet feed it will give you this error. Unfortunately, it's a bit hard to untangle this.

Either case, this is something that has to do with the tooling. Can I ask you to report it as such? I will add a label on here that will trigger a bot to post a comment with all the instructions for that. Thanks!

ghost commented 1 year ago

Thanks for the issue report @alfkonee! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS.

If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

  1. Go to the Visual Studio for Windows feedback tool or Visual Studio for Mac feedback tool to report the issue
  2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.

This issue will be automatically closed in 3 days if there are no further comments.

ghost commented 1 year ago

This issue is being closed due to inactivity. If this issue is still affecting you, please follow the steps above to use the VS Feedback Tool to report the issue.