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

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

Closed
egvijayanand opened this issue Apr 11, 2024 · 18 comments
Assignees
Labels
Area-Workloads untriaged Request triage from a team member

Comments

@egvijayanand
Copy link

egvijayanand commented Apr 11, 2024

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\)
@KannanKrish
Copy link

Same for me

@TommiGustafsson-HMP
Copy link

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

@Emil215p
Copy link

Also having the same issue.

@MartyIX
Copy link

MartyIX commented Apr 14, 2024

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

@TommiGustafsson-HMP
Copy link

TommiGustafsson-HMP commented Apr 15, 2024

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

@MartyIX
Copy link

MartyIX commented Apr 15, 2024

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

@TommiGustafsson-HMP
Copy link

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

Ok. It worked. Thanks.

@PureWeen PureWeen transferred this issue from dotnet/maui Apr 16, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Workloads untriaged Request triage from a team member labels Apr 16, 2024
@caliberdigitalllc
Copy link

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

@rolfbjarne
Copy link
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

@rolfbjarne rolfbjarne self-assigned this Apr 19, 2024
@rolfbjarne
Copy link
Member

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

@TommiGustafsson-HMP
Copy link

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.

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

@TommiGustafsson-HMP
Copy link

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

@janne-hmp
Copy link

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

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

@janne-hmp
Copy link

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.

@rolfbjarne
Copy link
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)

@janne-hmp
Copy link

Thanks, we'll check this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Workloads untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

8 participants