Skip to content

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

Closed

Description

@egvijayanand

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\)

Activity

  1. KannanKrish commented on Apr 12, 2024

    @KannanKrish

    Same for me

  2. TommiGustafsson-HMP commented on Apr 12, 2024

    @TommiGustafsson-HMP

    The same for me. It installs dozens of packages and then fails at 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\.).

  3. Emil215p commented on Apr 12, 2024

    @Emil215p

    Also having the same issue.

  4. MartyIX commented on Apr 14, 2024

    @MartyIX
    Contributor

    (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.)

  5. TommiGustafsson-HMP commented on Apr 15, 2024

    @TommiGustafsson-HMP

    (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.

  6. MartyIX commented on Apr 15, 2024

    @MartyIX
    Contributor

    I just copied all the sources to my NuGet.config file.

  7. TommiGustafsson-HMP commented on Apr 15, 2024

    @TommiGustafsson-HMP

    I just copied all the sources to my NuGet.config file.

    Ok. It worked. Thanks.

  8. transferred this issue fromdotnet/mauion Apr 16, 2024
  9. ghost added
    untriaged
    on Apr 16, 2024
  10. cbdg-mitch commented on Apr 17, 2024

    @cbdg-mitch

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

  11. rolfbjarne commented on Apr 19, 2024

    @rolfbjarne
    Member

    (When something like this happen, I tend to try copying sources from dotnet/maui@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.

    I believe this is the feed you need:

    https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json

  12. self-assigned this
    on Apr 19, 2024
  13. rolfbjarne commented on Apr 19, 2024

    @rolfbjarne
    Member

    I believe I've fixed this now, packages have been pushed.

  14. TommiGustafsson-HMP commented on Apr 19, 2024

    @TommiGustafsson-HMP

    It's still not working perfectly. If we try to do Pair to Mac, there's this error:

    image

    However, if we add NuGet.config to our .NET 9.0 MAUI project like this:

    https://github.com/dotnet/maui/blob/net9.0/NuGet.config

    The error goes away.

  15. rolfbjarne commented on Apr 19, 2024

    @rolfbjarne
    Member

    It's still not working perfectly. If we try to do Pair to Mac, there's this error:

    image

    However, if we add NuGet.config to our .NET 9.0 MAUI project like this:

    dotnet/maui@net9.0/NuGet.config

    The error goes away.

    I think you somehow picked up some preview 4 builds from those additional feeds at some point, because preview 4 packages are not supposed to be on nuget.org yet.

  16. TommiGustafsson-HMP commented on Apr 19, 2024

    @TommiGustafsson-HMP

    We are not sure why it is looking for preview4 packages. We have defined preview3 SDK in our global.json.

  17. janne-hmp commented on Apr 20, 2024

    @janne-hmp

    I can confirm that the iOS workload download (on Mac especially when Pairing to Mac from Windows) is still not working as of now.

  18. rolfbjarne commented on Apr 22, 2024

    @rolfbjarne
    Member

    If you still have problems, please try to completely remove .NET, make sure you don't have any custom NuGet sources, and then try to install .NET 9 preview 3 again.

  19. janne-hmp commented on Apr 22, 2024

    @janne-hmp

    This is a problem on the Mac side when pairing to Mac. What is the best way of removing .NET from Mac? Pair to Mac functionality on Windows has been handling everything so far for me.

  20. rolfbjarne commented on Apr 23, 2024

    @rolfbjarne
    Member

    This is a problem on the Mac side when pairing to Mac. What is the best way of removing .NET from Mac? Pair to Mac functionality on Windows has been handling everything so far for me.

    The pairing to Mac functionality installs whatever is installed on the Windows machine; which means that starting from a clean slate on Windows is likely to fix the problem on the Mac too.

    In the case this isn't so, pair to Mac installs .NET here:

    ~/Library/Caches/Xamarin/XMA/SDKs/dotnet

    You can remove this directory (or rename it, so you can add it back if something goes wrong)

  21. janne-hmp commented on Apr 23, 2024

    @janne-hmp

    Thanks, we'll check this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area-Workloadsuntriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions