dotnet-maui-check
dotnet-maui-check copied to clipboard
maui-check can't update/install workloads
SHELL: C:\Program Files\dotnet\dotnet.exe workload update --no-cache --disable-parallel --from-rollback-file "C:\Users\Midnayt\AppData\Local\Temp\maui-check-58e46283\workload.json" --source "https://api.nuget.org/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-rc.1.21458.32-shipping/nuget/v3/index.json"
No workloads installed for this feature band. To update workloads installed with earlier SDK versions, include the --from-previous-sdk option.
Updated advertising manifest microsoft.net.workload.emscripten.
Updated advertising manifest microsoft.net.workload.mono.toolchain.
Workload update failed: Invalid rollback definition. The manifest IDs in rollback definition C:\Users\Midnayt\AppData\Local\Temp\maui-check-58e46283\workload.json do not match installed manifest IDs.
Description:
Update all installed workloads.
Usage:
dotnet [options] workload update
System.Exception: Workload Update failed: `dotnet workload update --no-cache --disable-parallel --from-rollback-file
"C:\Users\Midnayt\AppData\Local\Temp\maui-check-58e46283\workload.json" --source "https://api.nuget.org/v3/index.json"
--source "https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-rc.1.21458.32-shipping/nuget/v3/index.json"`
at DotNetCheck.DotNet.DotNetWorkloadManager.CliUpdateWithRollback(String rollbackFile) in /_/MauiCheck/DotNet/
DotNetWorkloadManager.cs:199
at DotNetCheck.DotNet.DotNetWorkloadManager.Install(DotNetWorkload[] workloads) in /_/MauiCheck/DotNet/
DotNetWorkloadManager.cs:67
at DotNetCheck.Checkups.DotNetWorkloadsCheckup.<>c__DisplayClass12_0.<<Examine>b__0>d.MoveNext() in
/_/MauiCheck/Checkups/DotNetWorkloadsCheckup.cs:104
Fix failed - Workload Update failed: `dotnet workload update --no-cache --disable-parallel --from-rollback-file
"C:\Users\Midnayt\AppData\Local\Temp\maui-check-58e46283\workload.json" --source "https://api.nuget.org/v3/index.json"
--source "https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-rc.1.21458.32-shipping/nuget/v3/index.json"`
This might help: https://github.com/dotnet/maui/wiki/Installing-.NET-6
I noticed that "--source ..." might need to be updated to "--add-source" as "--source" is not a valid option name. As these are part of a downloaded package, the sources may need to be updated so that the script runs properly. Can you please check this? There is an existing pull request from back in August that fixes this, but has not been reviewed. #114