.net MAUI Project based on .net version 7 getting crashed while I am trying to deploy it on device. Below is the exception I am getting:
Visual Studio for Mac version :17.4(build 2406) .net version: .net 7 iPhone 13, iOS 16.3 below are the packages being used:
Crashlogs: Unhandled Exception: System.TypeLoadException: Could not set up parent class, due to: Invalid generic instantiation assembly:/private/var/containers/Bundle/Application/8849B149-36C8-4750-86DD-2AAC2A958F3D//Microsoft.Maui.dll type:ViewHandler2 member:(null) at CommunityToolkit.Maui.AppBuilderExtensions.<>c.b__0_0(IMauiHandlersCollection h) in /_/src/CommunityToolkit.Maui/AppBuilderExtensions.shared.cs:line 28 at Microsoft.Maui.Hosting.HandlerMauiAppBuilderExtensions.HandlerRegistration.AddRegistration(IMauiHandlersCollection builder) at Microsoft.Maui.Hosting.Internal.MauiHandlersFactory.CreateHandlerCollection(IEnumerable1 registrationActions) at Microsoft.Maui.Hosting.Internal.MauiHandlersFactory..ctor(IEnumerable`1 registrationActions) at Microsoft.Maui.Hosting.HandlerMauiAppBuilderExtensions.<>c.b__1_0(IServiceProvider sp) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.<…>
release mode
instead ofdebug mode
. If that doesn't work, please help provide more details on this issue likeVS version,
.NET version
,iOS device information
and thenuget packages
. – ElwaineTelerik.UI.for.Maui
. You can refer to .NET MAUI Project - Could not set up parent class, due to: Invalid generic instantiation. – ElwaineCommunityToolkt.Maui package
, you can create an issue at github.com/CommunityToolkit/Maui/issues for help. – Elwaine