Redth / dotnet-maui-check

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

maui-check can't update after visual studio 2022 preview 4.0 installed and then VS produces empty maui solutions #124

Open ErikSJan opened 3 years ago

ErikSJan commented 3 years ago

Hello,

here the error in maui-check:

.NET SDK - Workloads (6.0.100-rc.1.21458.32) Checkup...

  • android-aot (Microsoft.NET.Sdk.Android.Manifest-6.0.100 : 31.0.100-rc.1.12) installed.
  • ios (Microsoft.NET.Sdk.iOS.Manifest-6.0.100 : 15.0.100-rc.1.1534) installed.
  • maccatalyst (Microsoft.NET.Sdk.MacCatalyst.Manifest-6.0.100 : 15.0.100-rc.1.1534) installed. × tvos (Microsoft.NET.Sdk.tvOS.Manifest-6.0.100 : 15.0.100-rc.1.1534) not installed. × macos (Microsoft.NET.Sdk.macOS.Manifest-6.0.100 : 12.0.100-rc.1.1534) not installed.
  • maui (Microsoft.NET.Sdk.Maui.Manifest-6.0.100 : 6.0.100-rc.1.1608) installed.
  • wasm-tools (microsoft.net.workload.mono.toolchain.manifest-6.0.100 : 6.0.0-rc.1.21451.13) installed.
  • microsoft-net-sdk-emscripten (microsoft.net.workload.emscripten.manifest-6.0.100 : 6.0.0-rc.1.21430.3) installed. ¤ Recommendation: Install or Update SDK Workloads ! Attempt to fix? [y/n] (y): y » Attempting to fix: .NET SDK - Workloads (6.0.100-rc.1.21458.32) SHELL: C:\Program Files\dotnet\dotnet.exe workload update --no-cache --disable-parallel --from-rollback-file "C:\Users\Erik\AppData\Local\Temp\maui-check-e0c352a5\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"

Updated advertising manifest microsoft.net.sdk.android. Updated advertising manifest microsoft.net.sdk.ios. Updated advertising manifest microsoft.net.sdk.maccatalyst. Updated advertising manifest microsoft.net.sdk.maui. 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\Erik\AppData\Local\Temp\maui-check-e0c352a5\workload.json do not match installed manifest IDs.

I tried all workaround I could find in the previous issues but none work. Now whaen I try to create a .NET maui app in VS 2022 I only get an empty solution without any error.

Midnayt commented 3 years ago

Now whaen I try to create a .NET maui app in VS 2022 I only get an empty solution without any error.

When you create MAUI solution uncheck "place solution in same folder"

hot33331 commented 3 years ago

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

Midnayt commented 3 years ago

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

зображення

hot33331 commented 3 years ago

I think on windows by now you can use visual studio 2022 preview to install Maui and .net 6. But you have to uninstall previous installations with the powershell script from the maui check repository.

Midnayt commented 3 years ago

I think on windows by now you can use visual studio 2022 preview to install Maui and .net 6. But you have to uninstall >previous installations with the powershell script from the maui check repository.

all was removed, reinstalled. All steps from your previos post was made - result you already saw.