Closed brSaif closed 2 years ago
Remove.net 7 previews (7.0.100-preview.6.22352.1) or use gloabal.json and point to 6.0.400 SDK
@MagicAndre1981 i already tried that and i had a global.json file in the attached sample app, with the specified v6.0.4 sdk and still have the issue.
Plus when i run maui-check --force-dotnet
& unlike the regular maui-check
cmd a couple of issue araises telling me that a couple of manifest files missing and after i accept the suggested fix, it says the download failed
› .NET SDK - Workloads (6.0.301) Checkup...
× android (Microsoft.NET.Sdk.Android.Manifest-6.0.300 : 32.0.440) not installed.
– ios (Microsoft.NET.Sdk.iOS.Manifest-6.0.300 : 15.4.447) installed.
– maccatalyst (Microsoft.NET.Sdk.MacCatalyst.Manifest-6.0.400 : 15.4.447) installed.
– tvos (Microsoft.NET.Sdk.tvOS.Manifest-6.0.400 : 15.4.447) installed.
– macos (Microsoft.NET.Sdk.macOS.Manifest-6.0.400 : 12.3.447) installed.
× maui (Microsoft.NET.Sdk.Maui.Manifest-6.0.300 : 6.0.419) not installed.
! Managing Workload installation from the CLI is NOT recommended. Instead you should install the latest Visual Studio
preview to automatically get the newest release of .NET MAUI workloads installed.
Are you sure you would like to continue the CLI workload installation? [y/n] (n): y
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
¤ Recommendation: Install or Update SDK Workloads
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
! Attempt to fix? [y/n] (y): y
» Attempting to fix: .NET SDK - Workloads (6.0.301)
SHELL: C:\Program Files\dotnet\dotnet.exe workload repair --source "$(PACKAGE_SOURCE_NUGET_ORG)"
Repairing workload installation for workloads: maui
Repairing Microsoft.Maui.Core.Ref.android.6.0.486.0-x64.msi ...... Done
Repairing Microsoft.Maui.Core.Runtime.android.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Controls.Ref.android.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Controls.Runtime.android.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Essentials.Ref.android.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Essentials.Runtime.android.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.AspNetCore.Components.WebView.Maui.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Dependencies.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Sdk.6.0.486.0-x64.msi ....... Done
Repairing Microsoft.Maui.Extensions.6.0.486.0-x64.msi ..... Done
Repairing
Microsoft.Maui.Graphics.6.0.403-x64.msi ..... Done
Repairing
Microsoft.Maui.Resizetizer.Sdk.6.0.486.0-x64.msi .......... Done
Repairing Microsoft.Maui.Templates- 6.0.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Core.Ref.any.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Core.Runtime.any.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Controls.Ref.any.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Controls.Runtime.any.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Essentials.Ref.any.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Essentials.Runtime.any.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Android.Sdk.Windows.32.0.448-x64.msi ........................ Done
Repairing Microsoft.Android.Ref.31.32.0.448-x64.msi ............ Done
Repairing Microsoft.Android.Runtime.31.android-arm.32.0.448-x64.msi ....... Done
Repairing Microsoft.Android.Runtime.31.android-arm64.32.0.448-x64.msi ....... Done
Repairing Microsoft.Android.Runtime.31.android-x86.32.0.448-x64.msi ....... Done
Repairing Microsoft.Android.Runtime.31.android-x64.32.0.448.msi ....... Done
Repairing Microsoft.Android.Templates.32.0.448-x64.msi ..... Done
Repairing Microsoft.Mono.android-arm.7.0.0-preview.7.22375.6-x64.msi ................. Done
Repairing Microsoft.Mono.android-arm64.7.0.0-preview.7.22375.6-x64.msi .................... Done
Repairing Microsoft.Mono.android-x64.7.0.0-preview.7.22375.6.msi ................... Done
Repairing Microsoft.Mono.android-x86.7.0.0-preview.7.22375.6-x64.msi .................. Done
Repairing Microsoft.MonoAOTCompiler.Task.7.0.0-preview.7.22375.6-x64.msi ....... Done
Repairing Microsoft.MonoTargets.Sdk.7.0.0-preview.7.22375.6-x64.msi ...... Done
Repairing Microsoft.AOT.win-x64.Cross.android-x86.7.0.0-preview.7.22375.6.msi ...... Done
Repairing Microsoft.AOT.win-x64.Cross.android-x64.7.0.0-preview.7.22375.6.msi ....... Done
Repairing Microsoft.AOT.win-x64.Cross.android-arm.7.0.0-preview.7.22375.6.msi ....... Done
Repairing Microsoft.AOT.win-x64.Cross.android-arm64.7.0.0-preview.7.22375.6.msi ....... Done
Repairing Microsoft.Maui.Core.Ref.ios.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Core.Runtime.ios.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Controls.Ref.ios.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Controls.Runtime.ios.6.0.486.0-x64.msi ...... Done
Repairing Microsoft.Maui.Essentials.Ref.ios.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Essentials.Runtime.ios.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.iOS.Sdk.15.4.447.447-x64.msi ............ Done
Repairing Microsoft.iOS.Windows.Sdk.15.4.447.447-x64.msi ............. Done
Repairing Microsoft.iOS.Ref.15.4.447.447-x64.msi ..... Done
Repairing Microsoft.iOS.Runtime.ios-arm.15.4.447.447-x64.msi ...... Done
Repairing Microsoft.iOS.Runtime.ios-arm64.15.4.447.447-x64.msi ...... Done
Repairing Microsoft.iOS.Runtime.iossimulator-x86.15.4.447.447-x64.msi ...... Done
Repairing Microsoft.iOS.Runtime.iossimulator-x64.15.4.447.447.msi ...... Done
Repairing Microsoft.iOS.Runtime.iossimulator-arm64.15.4.447.447-x64.msi ....... Done
Repairing Microsoft.iOS.Templates.15.4.447.447-x64.msi ..... Done
Repairing Microsoft.Mono.ios-arm.7.0.0-preview.7.22375.6-x64.msi ................... Done
Repairing Microsoft.Mono.ios-arm64.7.0.0-preview.7.22375.6-x64.msi ...................... Done
Repairing Microsoft.Mono.iossimulator-arm64.7.0.0-preview.7.22375.6-x64.msi ....................... Done
Repairing Microsoft.Mono.iossimulator-x64.7.0.0-preview.7.22375.6.msi ................................ Done
Repairing Microsoft.Mono.iossimulator-x86.7.0.0-preview.7.22375.6-x64.msi .................... Done
Repairing Microsoft.Maui.Core.Ref.tizen.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Core.Runtime.tizen.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Controls.Ref.tizen.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Controls.Runtime.tizen.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Essentials.Ref.tizen.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Essentials.Runtime.tizen.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Core.Ref.maccatalyst.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Core.Runtime.maccatalyst.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Controls.Ref.maccatalyst.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Controls.Runtime.maccatalyst.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Essentials.Ref.maccatalyst.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Essentials.Runtime.maccatalyst.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.MacCatalyst.Sdk.15.4.447.447-x64.msi ........ Done
Repairing Microsoft.MacCatalyst.Ref.15.4.447.447-x64.msi ..... Done
Repairing Microsoft.MacCatalyst.Runtime-arm64.15.4.447.447-x64.msi ...... Done
Repairing Microsoft.MacCatalyst.Runtime-x64.15.4.447.447.msi ...... Done
Repairing Microsoft.MacCatalyst.Templates.15.4.447.447-x64.msi ..... Done
Repairing Microsoft.Mono.maccatalyst-arm64.7.0.0-preview.7.22375.6-x64.msi .................... Done
Repairing Microsoft.Mono.maccatalyst-x64.7.0.0-preview.7.22375.6.msi ................... Done
Repairing Microsoft.Maui.Core.Ref.win.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Core.Runtime.win.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Controls.Ref.win.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Controls.Runtime.win.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Essentials.Ref.win.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Essentials.Runtime.win.6.0.486.0-x64.msi ..... Done
Repairing Microsoft.Maui.Graphics.Win2D.6.0.403-x64.msi ..... Done
Successfully repaired workloads: maui
SHELL: C:\Program Files\dotnet\dotnet.exe workload install
--from-rollback-file "C:\Users\Saibr\AppData\Local\Temp\maui-check-4752f8c0\workload.json"
android ios maccatalyst tvos macos maui --source "$(PACKAGE_SOURCE_NUGET_ORG)"
Workload(s) 'maui' are already installed.
Advertising manifest not updated. Manifest package for microsoft.net.sdk.ios doesn't exist.
Advertising manifest not updated. Manifest package for microsoft.net.sdk.android doesn't exist.
Advertising manifest not updated. Manifest package for microsoft.net.sdk.maccatalyst doesn't exist.
Advertising manifest not updated. Manifest package for microsoft.net.sdk.macos doesn't exist.
Advertising manifest not updated. Manifest package for microsoft.net.sdk.maui doesn't exist.
Advertising manifest not updated. Manifest package for microsoft.net.sdk.tvos doesn't exist.
Advertising manifest not updated. Manifest package for microsoft.net.workload.mono.toolchain doesn't exist.
Advertising manifest not updated. Manifest package for microsoft.net.workload.emscripten doesn't exist.
Downloading microsoft.net.sdk.android.manifest-6.0.300.msi.x64 (32.0.440)
Workload installation failed. Rolling back installed packs...
Workload installation failed: One or more errors occurred.
(microsoft.net.sdk.android.manifest-6.0.300.msi.x64::32.0.440 is not found in NuGet feeds
C:\Users\Saibr\AppData\Local\Temp\maui-check-4752f8c0\$(PACKAGE_SOURCE_NUGET_ORG)".)
Fix failed - Workload Install failed: `dotnet workload install --from-rollback-file
"C:\Users\Saibr\AppData\Local\Temp\maui-check-4752f8c0\workload.json"
android ios maccatalyst tvos macos maui --source "$(PACKAGE_SOURCE_NUGET_ORG)"`
────────────────────────────────────────────────────── ! There were one or more problems detected.
Please review the errors and correct them and run maui-check again.
Press enter to exit...
remove .net 7 completely and use a VM to test .net7 there with VS2022 17.4 P1
As already indicated, .NET 7 is not supported with .NET MAUI right now. So either uninstall .NET 7 or add a global.json file to your .NET MAUI project so it uses .NET 6 to restore the .NET MAUI workload NuGet packages.
Description
My dotnet maui projects were working just fine till i updated vs2022 (17.2.0) community -> VS20222(17.3.0) vs2022 (17.3.0) community preview -> VS20222(17.4.0)
Then suddenly all the maui projects started throwing lots of MSB3106 & NU1202 errors and never been able to successfully build them since then.
I tried :
Steps to Reproduce
For me it's as simple as :
dotnet new maui -n mauiapp
Here's the zipped sample app that may help you reproduce the issue
Version with bug
6.0.400
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, Windows, macOS
Affected platform versions
net6.0-windows10.0.19041.0, net6.0-maccatalyst, net6.0-android31, net6.0-ios-15.4
Did you find any workaround?
No response
Relevant log output
Maui-check
Build Errors (Truncated)