(Mac)Failed to update the advertising manifest microsoft.net.workloads: Object reference not set to an instance of an object..
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 290
Description
### Description
While installing the .net maui workload getting the below error:
Checking for updated workload version.
Failed to update the advertising manifest microsoft.net.workloads: Object reference not set to an instance of an object..
No workload update found.
Workload installation failed. Rolling back installed packs...
Workload installation failed: One or more errors occurred. (Downloading microsoft.ios.ref.net10.0_26.0 version 26.0.10970-net10-rc.2 failed) (Downloading microsoft.aspnetcore.components.webview.maui version 10.0.0-rc.2.25504.7 failed) (Downloading microsoft.netcore.app.runtime.aot.osx-arm64.cross.android-arm64 version 9.0.11 failed) (Downloading microsoft.maccatalyst.ref.net10.0_26.0 version 26.0.10970-net10-rc.2 failed) (Downloading microsoft.netcore.app.runtime.aot.osx-arm64.cross.iossimulator-x64 version 9.0.11 failed) (Downloading microsoft.netcore.app.runtime.mono.android-x64 version 9.0.11 failed) (Downloading microsoft.netcore.app.runtime.aot.osx-arm64.cross.android-x86 version 10.0.1 failed) (Downloading microsoft.android.runtime.coreclr.36.android-arm64 version 36.0.0-rc.2.332 failed) (Downloading microsoft.netcore.app.runtime.aot.osx-arm64.cross.iossimulator-arm64 version 10.0.1 failed) (Downloading microsoft.maui.core version 10.0.0-rc.2.25504.7 failed) (Downloading microsoft.android.sdk.darwin version 35.0.105 failed) (Downloading microsoft.netcore.app.runtime.mono.maccatalyst-arm64 version 10.0.1 failed)
### Steps to Reproduce
In Mac, Download the latest sdk and install it on MacOS, SDK Version: 10.0.101
Run the dotnet workload install maui
Gets the error.
### Link to public reproduction project repository
_No response_
### Version with bug
10.0.0-rc.2
### Is this a regression from previous behavior?
No, this is something new
### Last version that worked well
10.0.0-rc.1
### Affected platforms
iOS, Android
### Affected platform versions
_No response_
### Did you find any workaround?
Tried repairing/updating the workload but gets the error "there is no workload to repair/upload"
### Relevant log output
```shell
```
Contributor guide
Research direction
Start by reproducing the failure on macOS with SDK 10.0.101 using `dotnet workload install maui`, then compare the 10.0.0-rc.2 behavior with the last working 10.0.0-rc.1 version. Investigate the advertising manifest update and the listed workload package downloads; done means the MAUI workload installs without rollback or null-reference errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp, ios, macos
- Domain
- mobile-dev, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100