I am unable to update my dotnet workloads for SDK 9.0.103.0
> dotnet workload update
Installing workload version 9.0.103.0.
Installing microsoft.workloads.9.0.100.msi.x64 ....... Done
Workload installation failed. Rolling back installed packs...
Removing microsoft.workloads.9.0.100.msi.x64 ..... Done
Workload update failed: Could not find a part of the path 'C:\Program Files\dotnet\sdk-manifests\9.0.100\workloadsets\9.0.103.0'.
> dotnet workload repair
No workloads are installed, nothing to repair. Run `dotnet workload search` to find workloads to install.
I tried SDK 9.0.104.0
I uninstalled all .NET 9 SDKs To remove the last .NEt 9 SDK, I had to uninstall Visual Studio. All resinstalled. No luck.
Even created a new Dev VM using Vagrant and still no dice.
Any suggestions?
I am unable to update my dotnet workloads for SDK 9.0.103.0
> dotnet workload update
Installing workload version 9.0.103.0.
Installing microsoft.workloads.9.0.100.msi.x64 ....... Done
Workload installation failed. Rolling back installed packs...
Removing microsoft.workloads.9.0.100.msi.x64 ..... Done
Workload update failed: Could not find a part of the path 'C:\Program Files\dotnet\sdk-manifests\9.0.100\workloadsets\9.0.103.0'.
> dotnet workload repair
No workloads are installed, nothing to repair. Run `dotnet workload search` to find workloads to install.
I tried SDK 9.0.104.0
I uninstalled all .NET 9 SDKs To remove the last .NEt 9 SDK, I had to uninstall Visual Studio. All resinstalled. No luck.
Even created a new Dev VM using Vagrant and still no dice.
Any suggestions?
Share Improve this question asked Mar 26 at 12:24 Andy JoinerAndy Joiner 6,6114 gold badges52 silver badges78 bronze badges1 Answer
Reset to default 0There was an extra "0" in my workloadVersion in my global.json:
{
"sdk": {
"rollForward": "disable",
"version": "9.0.103",
"workloadVersion": "9.0.103.0"
}
}
Fixed:
{
"sdk": {
"rollForward": "disable",
"version": "9.0.103",
"workloadVersion": "9.0.103"
}
}
Also, Contents of file did get mashed at some point:
"C:\Users\vagrant\AppData\Local\Microsoft\dotnet\metadata\workloads\X64\9.0.100\InstallState\globaljsonworkloadsets.json"
Was
{}
"C:\\Source\\FieldViewMobile\\global.json": "9.0.102.0"
}
I removed the "}" on the first line and saved it.