Closed philippjbauer closed 2 years ago
Related to #3021
The last comment points to documentation that was moved / official docs were no help.
Unfortunately the answer as of now is basically try again, this appears to be a transient network error of some type.
You can track discussion/progress here, as this is a dotnet/sdk level bug: https://github.com/dotnet/sdk/issues/20849
Thank you for the quick reply and reference @Redth!
It worked eventually after retrying a bunch of times.
@Redth I found a workaround for this and added it to the OP. Do you think this could find a place over in the SDK issue you linked to help people with similar download issues that discover that thread?
Please add your findings to the issue in their repo. I'm not familiar with their code base but I can raise the issue again with the team if you've shared new/more info.
Thanks!
Description
Can't install Maui workload on macOS Monterey (12.1) on Apple Silicon ARM64 with
sudo dotnet workload install maui
or subset of maui, like maui-ios.I am getting the following error, every single time:
All prerequisites are installed according to official install instructions. Fresh install of latest .NET 6 SDK 6.0.101. maui-check is checking out without problems.
Steps to Reproduce
Run
sudo dotnet workload install maui
in CLI.Version with bug
Preview 11
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
macOS 12.1
Did you find any workaround?
I found a workaround encountering download issues with the
dotnet workload install
command. This involves some helpful, but unfortunately undocumented, command options I figured out by looking into the source code in the .NET SDK GitHub repo. 😮💨Download URLS
First you have to download the URLs to the needed workload nuget packages.
Create list of URLs
Then you follow the next steps to create a file with all links, ready to be used with
wget
.maui.workload.preview-12.txt
.,
with newline, remove[
,]
and"
.maui.nuget.cache
.Download packages
Use
wget
command inside of new cache folder to download all packages from text file.You can retry as often as needed, use
ctrl-c
to cancel when the download gets stuck and use the command again to continue where the download stopped.wget
will skip files you already downloaded.Install workload from disk
Now use the downloaded files from your local cache to install the workload.
Use the same sources to restore a project
That should do it.
Relevant log output