sdk: Workload install error - Unable to install maui workload on Windows - .NET 9 Preview 3

Description

Workload install error - Unable to install maui workload on Windows - .NET 9 Preview 3

Workload installation failed: One or more errors occurred. (Version 17.0.8519 of package microsoft.ios.sdk.net8.0_17.0.msi.x64 is not found in NuGet feeds https://api.nuget.org/v3/index.json;C:\Program Files (x86)\Microsoft SDKs\NuGetPackages)

Steps to Reproduce

dotnet workload install maui

Link to public reproduction project repository

Workload install issue

Version with bug

9.0.0-preview.3.10457

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.0-preview.2.10293

Affected platforms

iOS

Affected platform versions

iOS

Did you find any workaround?

None

Relevant log output

Workload installation failed: One or more errors occurred. (Version 17.0.8519 of package microsoft.ios.sdk.net8.0_17.0.msi.x64 is not found in NuGet feeds https://api.nuget.org/v3/index.json;C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\)

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 18 (5 by maintainers)

Most upvoted comments

adding the sources to Windows: %appdata%\NuGet\NuGet.Config from https://github.com/dotnet/maui/blob/net9.0/NuGet.config fixed it for me.

(When something like this happen, I tend to try copying sources from https://github.com/dotnet/maui/blob/net9.0/NuGet.config. Maybe it would help here. IDK.)

This does not work either. I tried using https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json in the -s parameter.