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