dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.28k stars 1.76k forks source link

Dotnet Maui fails to restore packages and build the project & throws NU1202 errors #9431

Closed brSaif closed 2 years ago

brSaif commented 2 years ago

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

### Device Info

C:\Users\dotgeek\Source\Repos\MauiApp4\MauiApp4>dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.400
 Commit:    7771abd614

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.19043
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\6.0.400\

Host:
  Version:      7.0.0-preview.6.22324.4
  Architecture: x64
  Commit:       d3fa592f6d

.NET SDKs installed:
  2.2.207 [C:\Program Files\dotnet\sdk]
  3.1.408 [C:\Program Files\dotnet\sdk]
  5.0.404 [C:\Program Files\dotnet\sdk]
  6.0.100 [C:\Program Files\dotnet\sdk]
  6.0.400 [C:\Program Files\dotnet\sdk]
  7.0.100-preview.6.22352.1 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.All 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.0-preview.6.22330.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.0-preview.6.22324.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 7.0.0-preview.6.22351.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
  x86   [C:\Program Files (x86)\dotnet]
    registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
  Not set

global.json file:
  C:\Users\dotgeek\Source\Repos\MauiApp4\MauiApp4\global.json

Learn more:
  https://aka.ms/dotnet/info

Maui-check

     _   _   _____   _____     __  __      _      _   _   ___                                                                      
    | \ | | | ____| |_   _|   |  \/  |    / \    | | | | |_ _|                                                                     
    |  \| | |  _|     | |     | |\/| |   / _ \   | | | |  | |                                                                   
 _  | |\  | | |___    | |     | |  | |  / ___ \  | |_| |  | |                                                                  (_) |_| \_| |_____|   |_|     |_|  |_| /_/   \_\  \___/  |___|                                                                                                                                                                                               ¤ .NET MAUI Check v1.0.0.0 ¤                                                                                                   
 ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

This tool will attempt to evaluate your .NET MAUI development environment.                                                            
If problems are detected, this tool may offer the option to try and fix them for you, or suggest a way to fix them             
yourself.                                                                                                                                                                                                                                                     Thanks for choosing .NET MAUI!                                                                                                 ─────────────────────────────────────────────────────────────────────────────── 
 ───────────────────────────────────────── 

 » Synchronizing configuration... ok                                                                                                   
 » Scheduling appointments... ok                                                                                                                                                                                                                               
 > OpenJDK 11.0 Checkup...                                                                                                        
- 11.0.12 (C:\Program Files\Microsoft\jdk-11.0.12.7-hotspot\bin\..)                                                            
- 11.0.12 (C:\Program Files\Eclipse Foundation\jdk-11.0.12.7-hotspot)                                                                                                                                                                                       
 > Visual Studio 17.3.0-pre.2.0 Checkup...                                                                                        
- 17.3.0 - C:\Program Files\Microsoft Visual Studio\2022\Community                                                             
- 17.4.0-pre.1.0 - C:\Program Files\Microsoft Visual Studio\2022\Preview                                                                                                                                                                                     
 > Android SDK Checkup...                                                                                                         
- emulator (31.3.10)                                                                                                           
 - build-tools;31.0.0 (31.0.0)                                                                                                  
 - platforms;android-31 (1)                                                                                                     
 - system-images;android-31;google_apis;x86_64 (9)                                                                              
 - platform-tools (33.0.2)                                                                                                      
 - cmdline-tools;5.0 (5.0)                                                                                                                                                                                                                                   
 > Android Emulator Checkup...                                                                                                   
  - Emulator: pixel_5_-_api_30 found.                                                                                                                                                                                                                         
   > .NET SDK Checkup...                                                                                                            
 - 2.2.207 - C:\Program Files\dotnet\sdk\2.2.207                                                                                
 - 3.1.408 - C:\Program Files\dotnet\sdk\3.1.408                                                                                
 - 5.0.404 - C:\Program Files\dotnet\sdk\5.0.404                                                                                
 - 6.0.100 - C:\Program Files\dotnet\sdk\6.0.100                                                                                
 - 6.0.400 - C:\Program Files\dotnet\sdk\6.0.400                                                                                
 - 7.0.100-preview.6.22352.1 - C:\Program Files\dotnet\sdk\7.0.100-preview.6.22352.1                                                                                                                                                                          
 > .NET SDK - Workload Deduplication Checkup...                                                                                                                                                                                                                
 > Edge WebView2 Checkup...                                                                                                       
 - Found Edge WebView2 version 104.0.1293.54                                                                                                                                                                                                                 
   > .NET SDK - Workloads (6.0.301) Checkup...                                                                                     
 - android (Microsoft.NET.Sdk.Android.Manifest-6.0.300 : 32.0.440) 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) installed.                                                         -  ─────────────────────────────────────────────────────────────────────────────── ────────────────────────────────────────────────                                                                                                                               
 - Congratulations, everything looks great!                                                                                                                                                                                                                    
  Press enter to exit...                                                                                                                                     

Build Errors (Truncated)

C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4>dotnet build
MSBuild version 17.3.0+92e077650 for .NET
  Determining projects to restore...
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Microsoft.Maui.Graphics 6.0.403 i
s not compatible with net6.0-maccatalyst15.4 (.NETCoreApp,Version=v6.0). Package Microsoft.Maui.Graphics 6.0.403 does n
ot support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Microsoft.Maui.Graphics 6.0.403 i
s not compatible with net6.0-android31.0 (.NETCoreApp,Version=v6.0). Package Microsoft.Maui.Graphics 6.0.403 does not s
upport any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Xamarin.Android.Glide 4.12.0.8 is
 not compatible with net6.0-android31.0 (.NETCoreApp,Version=v6.0). Package Xamarin.Android.Glide 4.12.0.8 does not sup
port any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Xamarin.AndroidX.Browser 1.4.0.1
is not compatible with net6.0-android31.0 (.NETCoreApp,Version=v6.0). Package Xamarin.AndroidX.Browser 1.4.0.1 does not
 support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Xamarin.AndroidX.Legacy.Support.V
4 1.0.0.13 is not compatible with net6.0-android31.0 (.NETCoreApp,Version=v6.0). Package Xamarin.AndroidX.Legacy.Suppor
t.V4 1.0.0.13 does not support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Xamarin.AndroidX.Lifecycle.LiveDa
ta 2.4.1.1 is not compatible with net6.0-android31.0 (.NETCoreApp,Version=v6.0). Package Xamarin.AndroidX.Lifecycle.Liv
eData 2.4.1.1 does not support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Xamarin.AndroidX.Navigation.Commo
n 2.4.2 is not compatible with net6.0-android31.0 (.NETCoreApp,Version=v6.0). Package Xamarin.AndroidX.Navigation.Commo
n 2.4.2 does not support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Xamarin.AndroidX.Navigation.Fragm
ent 2.4.2 is not compatible with net6.0-android31.0 (.NETCoreApp,Version=v6.0). Package Xamarin.AndroidX.Navigation.Fra
gment 2.4.2 does not support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Xamarin.AndroidX.Navigation.Runti
me 2.4.2 is not compatible with net6.0-android31.0 (.NETCoreApp,Version=v6.0). Package Xamarin.AndroidX.Navigation.Runt
ime 2.4.2 does not support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Xamarin.AndroidX.Navigation.UI 2.
4.2 is not compatible with net6.0-android31.0 (.NETCoreApp,Version=v6.0). Package Xamarin.AndroidX.Navigation.UI 2.4.2
does not support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Xamarin.AndroidX.Security.Securit
yCrypto 1.1.0-alpha03 is not compatible with net6.0-android31.0 (.NETCoreApp,Version=v6.0). Package Xamarin.AndroidX.Se
curity.SecurityCrypto 1.1.0-alpha03 does not support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Xamarin.Google.Android.Material 1
.6.0 is not compatible with net6.0-android31.0 (.NETCoreApp,Version=v6.0). Package Xamarin.Google.Android.Material 1.6.
0 does not support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Xamarin.Google.Crypto.Tink.Androi
d 1.6.1.6 is not compatible with net6.0-android31.0 (.NETCoreApp,Version=v6.0). Package Xamarin.Google.Crypto.Tink.Andr
oid 1.6.1.6 does not support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Xamarin.Android.Glide.Annotations
 4.12.0.8 is not compatible with net6.0-android31.0 (.NETCoreApp,Version=v6.0). Package Xamarin.Android.Glide.Annotatio
ns 4.12.0.8 does not support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Xamarin.Android.Glide.DiskLruCach
e 4.12.0.8 is not compatible with net6.0-android31.0 (.NETCoreApp,Version=v6.0). Package Xamarin.Android.Glide.DiskLruC
ache 4.12.0.8 does not support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Xamarin.Android.Glide.GifDecoder
4.12.0.8 is not compatible with net6.0-android31.0 (.NETCoreApp,Version=v6.0). Package Xamarin.Android.Glide.GifDecoder
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop 6.0.403 does not support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Microsoft.Maui.Graphics 6.0.403 i
s not compatible with net6.0-windows10.0.19041 (.NETCoreApp,Version=v6.0) / iossimulator-x64. Package Microsoft.Maui.Gr
aphics 6.0.403 does not support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Microsoft.Maui.Graphics.Win2D.Win
UI.Desktop 6.0.403 is not compatible with net6.0-windows10.0.19041 (.NETCoreApp,Version=v6.0) / iossimulator-x64. Packa
ge Microsoft.Maui.Graphics.Win2D.WinUI.Desktop 6.0.403 does not support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Microsoft.Maui.Graphics 6.0.403 i
s not compatible with net6.0-windows10.0.19041 (.NETCoreApp,Version=v6.0) / maccatalyst-x64. Package Microsoft.Maui.Gra
phics 6.0.403 does not support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Microsoft.Maui.Graphics.Win2D.Win
UI.Desktop 6.0.403 is not compatible with net6.0-windows10.0.19041 (.NETCoreApp,Version=v6.0) / maccatalyst-x64. Packag
e Microsoft.Maui.Graphics.Win2D.WinUI.Desktop 6.0.403 does not support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Microsoft.Maui.Graphics 6.0.403 i
s not compatible with net6.0-windows10.0.19041 (.NETCoreApp,Version=v6.0) / win10-x64. Package Microsoft.Maui.Graphics
6.0.403 does not support any target frameworks.
C:\Users\Saibr\Source\Repos\MauiApp4\MauiApp4\MauiApp4.csproj : error NU1202: Package Microsoft.Maui.Graphics.Win2D.Win
UI.Desktop 6.0.403 is not compatible with net6.0-windows10.0.19041 (.NETCoreApp,Version=v6.0) / win10-x64. Package Microsoft.Maui.Graphics.Win2D.WinUI.Desktop 6.0.403 does not support any target frameworks.

...etc
    0 Warning(s)
    696 Error(s)
MagicAndre1981 commented 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

brSaif commented 2 years ago

@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...                                              
MagicAndre1981 commented 2 years ago

remove .net 7 completely and use a VM to test .net7 there with VS2022 17.4 P1

jfversluis commented 2 years ago

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.