Redth / dotnet-maui-check

.NET MAUI Check tool
MIT License
479 stars 79 forks source link

Workload update failure #112

Open wallym opened 3 years ago

wallym commented 3 years ago

I'm trying to update my install on a machine. I'm getting the following error. I don't really know how to proceed. any ideas? the command I run is maui-check --force-dotnet

TIA

Fix failed - Workload Update failed: dotnet workload update --sdk-version 6.0.100-preview.7.21379.14 --no-cache --disable-parallel --from-rollback-file "C:\Users\theev\AppData\Local\Temp\maui-check-dotnet-work-dir\workload.json" --source "https://api.nuget.org/v3/index.json" --source "https://pkgs.dev.azure.com/dnceng/public/_packaging/6.0.100-preview.7.21379.14-shipping-1/nuget/v3/index.json"

djinnet commented 3 years ago

I got the same issue. However I also got the message No Manifests exists for SDK version 6.0.100-preview.7.21379.14 after having that workload command failed. I thought "huh, that is strange". So I look into this and found some stuff that hopefully could be useful.

From what I understand, the command is trying to update the workload and it required an manifest in order to do that. Since the urls are json, I can look them up and see what kind of nuget source they are pointing at. They leads me to this: https://www.nuget.org/packages/Microsoft.NET.Sdk.Maui.Manifest-6.0.100 image

Well... Looks like the error message makes sense since there are no manifest for 6.0.100-preview.7.21379.14, but there are for older versions. Someone forgot to put the new version there or there are automate functions that are broken somewhere on azure, since there are also azure urls within the json.

I do not have an workaround for this issue or any ideas for how to proceed as I am always crashing into the "no manifest" wall, but I hope this will leads to an solution rather an workaround. 👍

pshort commented 3 years ago

Im also having this issue. Im trying to install the MAUI bits to see if working on MAUI on a linux OS (targeting android) is feasible. So far not having a lot of success... Ive installed .net 6 preview 7 (7.21379) and its the same deal. Someone touched the build on this preview but didnt release dependent packages and some automation in the workload updater is expecting the versions to align up to the build I guess?

PiepsC commented 3 years ago

Same issue. Getting the appropriate workloads and templates has been an absolute nightmare so far.

ElliottBrand commented 3 years ago

I had ran into this issue as well and deleting the workloads folder at C:\Program Files\dotnet\metadata\workloads and running maui-check again is what worked for me.

hot33331 commented 3 years ago

This might help: https://github.com/dotnet/maui/wiki/Installing-.NET-6