dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.73k stars 1.07k forks source link

dotnet workload install maui fails because Microsoft.AspNetCore.Components.WebView.Maui.Msi.x64 version 8.0.7 doesn't exist #39530

Open abster95 opened 8 months ago

abster95 commented 8 months ago

Description

Trying to run dotnet workload install maui on Windows but it fails because it's looking for Microsoft.AspNetCore.Components.WebView.Maui.Msi.x64 version 8.0.7 and the latest version on NuGet is 8.0.6

Did you forget to push the package to nuget.org?

Steps to Reproduce

  1. Open Powershell
  2. Make sure you have .net8 sdk installed (hint: winget install Microsoft.DotNet.SDK.8)
  3. Run dotnet workload install maui
  4. Error should show up in the command line Workload installation failed: One or more errors occurred. (Version 8.0.7 of package microsoft.aspnetcore.components.webview.maui.msi.x64 is not found in NuGet feeds https://api.nuget.org/v3/index.json

Link to public reproduction project repository

No response

Version with bug

8.0.7 SR2

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

Unknown/Other

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

Nope, sorry. I can try to look at other nuget feeds for this package, but that won't fix the problem.

Relevant log output

Downloading microsoft.net.sdk.aspire.manifest-8.0.100.msi.x64 (8.0.0-preview.3.24105.21)
Installing microsoft.net.sdk.aspire.manifest-8.0.100.msi.x64 ....... Done
Downloading Microsoft.AspNetCore.Components.WebView.Maui.Msi.x64 (8.0.7)
Workload installation failed. Rolling back installed packs...
Downloading microsoft.net.sdk.aspire.manifest-8.0.100.msi.x64 (8.0.0-preview.1.23557.2)
Workload installation failed: One or more errors occurred. (Version 8.0.7 of package microsoft.aspnetcore.components.webview.maui.msi.x64 is not found in NuGet feeds https://api.nuget.org/v3/index.json;C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\".)
jaosnz-rep commented 8 months ago

I verified on a clean virtual machine (.net8 sdk version: 8.0.201) that the installed Microsoft.AspNetCore.Components.WebView.Maui.Msi.x64 is version 8.0.6, and it can be installed successfully without errors. image image

abster95 commented 8 months ago

Here's the output of the dotnet sdk check command on my machine

image

and it's still failing.

I also have another machine that this is failing for, with the same message. Not sure how we're seeing different outputs...

jaosnz-rep commented 8 months ago

Hi @abster95 , have you added other feeds to your NuGet.Config file? This may cause your workload installation to fail.

abster95 commented 8 months ago

I have added some private ADO feeds, but I tried dotnet nuget disable source before running this and got the same error. Should I delete the sources entirely from the nuget config?

Either way, if that works, that's a workaround, not a soulution. The error is cryptic and doesn't tell you the problem, and even if it did, it's not an unexpected setup to have private nuget feeds on the machine.

On Thu, Mar 14, 2024, 03:41 jaosnz-rep @.***> wrote:

Hi @abster95 https://github.com/abster95 , have you added other feeds to your NuGet.Config file? This may cause your workload installation to fail.

— Reply to this email directly, view it on GitHub https://github.com/dotnet/sdk/issues/39530 or unsubscribe https://github.com/notifications/unsubscribe-auth/AEF2ZL6XCA2OE2UIVX5ZIF3YYEE7DBFKMF2HI4TJMJ2XIZLTS6BKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTAVFOZQWY5LFUVUXG43VMWSG4YLNMWVXI2DSMVQWIX3UPFYGLAVFOZQWY5LFVIZDANBWG44DGMBSGWSG4YLNMWUWQYLTL5WGCYTFNSBKK5TBNR2WLKRTGM3DCMBQGIYTAONENZQW2ZNJNBQXGX3MMFRGK3ECUV3GC3DVMWVDGOBTGMYTQOJXHA3KI3TBNVS2S2DBONPWYYLCMVWIFJLWMFWHKZNKGU4TENRZHEYDOOBUURXGC3LFVFUGC427NRQWEZLMVRZXKYTKMVRXIX3UPFYGLLCJONZXKZKDN5WW2ZLOOSTHI33QNFRXHFUCUR2HS4DFVJZGK4DPONUXI33SPGSXMYLMOVS2SMRWGIZTSNJSGI2IFJDUPFYGLJLJONZXKZNFOZQWY5LFVIZDCNZWHAYDINRQGKBKI5DZOBS2K3DBMJSWZJLWMFWHKZNKGIYDINRXHAZTAMRVQKSHI6LQMWSWYYLCMVWKK5TBNR2WLKRTGM3DCMBQGIYTAOMCUR2HS4DFUVWGCYTFNSSXMYLMOVS2UMZYGMZTCOBZG44DNAVEOR4XAZNFNRQWEZLMUV3GC3DVMWVDKOJSGY4TSMBXHA2KO5DSNFTWOZLSUZRXEZLBORSQ . You are receiving this email because you were mentioned.

Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

mattleibow commented 8 months ago

The nuget is available on nuget.org:

https://www.nuget.org/packages/Microsoft.AspNetCore.Components.WebView.Maui.Msi.x64/8.0.7

Maybe thre was an outage or a problem on their end? Or maybe some issue in the SDK.

abster95 commented 8 months ago

Thanks, that nuget showing up on nuget.org fixed the original issue, but now it's failing at a later step: Version 34.0.91 of package microsoft.android.sdk.windows.msi.x64 is not found in NuGet feeds

As I see it on nuget.org the latest non-preview one is 34.0.85 image

Not sure if the issue is from nuget.org side or if there's a race condition where the public workload references components that aren't yet pushed to public nuget. Might be worth looking into.

lostmsu commented 1 month ago

I have the same error with

Version 8.0.90 of package microsoft.aspnetcore.components.webview.maui.msi.x64