Workload installation failed: Workload manifest microsoft.net.sdk.ios: 17.5.8030/8.0.100 from workload version 8.0.402.0 was not installed. Running "dotnet workload repair" may resolve this.
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
### Description
I'm trying to install a specific workload version for ios using the following command:
`sudo dotnet workload install ios --version 8.0.402.0
`
..which stops with the following error:
```Workload installation failed: Workload manifest microsoft.net.sdk.ios: 17.5.8030/8.0.100 from workload version 8.0.402.0 was not installed. Running "dotnet workload repair" may resolve this.```
Running the repair command gives me the following:
```No workloads are installed, nothing to repair. Run `dotnet workload search` to find workloads to install.```
Running ```dotnet workload list``` shows me the following:
```
Workload version: 8.0.402.0
Unhandled exception: System.IO.FileNotFoundException: Workload manifest microsoft.net.sdk.ios: 17.5.8030/8.0.100 from workload version 8.0.402.0 was not installed. Running "dotnet workload repair" may resolve this.
at Microsoft.NET.Sdk.WorkloadManifestReader.SdkDirectoryWorkloadManifestProvider.GetManifests()
at Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.LoadManifestsFromProvider(IWorkloadManifestProvider manifestProvider)
at Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.InitializeManifests()
at Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadResolver.GetInstalledManifests()
at Microsoft.DotNet.Workloads.Workload.List.WorkloadListCommand.Execute()
at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult parseResult)
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
```
My global.json looks like this:
```
{
"sdk": {
"version": "8.0.0",
"rollForward": "latestMajor",
"allowPrerelease": true
}
}
```
```
> dotnet --version
8.0.402
```
I'm on macOS Sonoma 14.6.1 (23G93) and my project build fine before upgrading.
How do I fix this problem?
### Steps to Reproduce
_No response_
### Link to public reproduction project repository
_No response_
### Version with bug
8.0.90 SR9
### Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
### Last version that worked well
8.0.90 SR9
### Affected platforms
iOS, Android, macOS
### Affected platform versions
_No response_
### Did you find any workaround?
_No response_
### Relevant log output
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.