dotnet-maui-check icon indicating copy to clipboard operation
dotnet-maui-check copied to clipboard

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

Open ErikSJan opened this issue 3 years ago • 5 comments

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.

ErikSJan avatar Sep 17 '21 13:09 ErikSJan

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"

Midnayt avatar Sep 24 '21 23:09 Midnayt

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

hot33331 avatar Sep 30 '21 07:09 hot33331

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

зображення

Midnayt avatar Oct 02 '21 17:10 Midnayt

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.

hot33331 avatar Oct 02 '21 18:10 hot33331

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.

Midnayt avatar Oct 02 '21 20:10 Midnayt