You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Workload install error - Unable to install maui workload on Windows - .NET 9 Preview 3 #40221
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\)
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\.).
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.
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.
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.
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)
Activity
KannanKrish commentedon Apr 12, 2024
Same for me
TommiGustafsson-HMP commentedon Apr 12, 2024
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 commentedon Apr 12, 2024
Also having the same issue.
MartyIX commentedon 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 commentedon Apr 15, 2024
This does not work either. I tried using
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.jsonin the -s parameter.MartyIX commentedon Apr 15, 2024
I just copied all the sources to my NuGet.config file.
TommiGustafsson-HMP commentedon Apr 15, 2024
Ok. It worked. Thanks.
cbdg-mitch commentedon Apr 17, 2024
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 commentedon Apr 19, 2024
I believe this is the feed you need:
rolfbjarne commentedon Apr 19, 2024
I believe I've fixed this now, packages have been pushed.
TommiGustafsson-HMP commentedon Apr 19, 2024
It's still not working perfectly. If we try to do Pair to Mac, there's this error:
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 commentedon Apr 19, 2024
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 commentedon Apr 19, 2024
We are not sure why it is looking for preview4 packages. We have defined preview3 SDK in our global.json.
janne-hmp commentedon Apr 20, 2024
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 commentedon Apr 22, 2024
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 commentedon Apr 22, 2024
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 commentedon Apr 23, 2024
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:
You can remove this directory (or rename it, so you can add it back if something goes wrong)
janne-hmp commentedon Apr 23, 2024
Thanks, we'll check this out.