Skip to content

[Bug]: MAUI-IOS-Check,Switch #6192

@Yang-Yi-Jian

Description

@Yang-Yi-Jian

Blazorise Version

1.8

What Blazorise provider are you running on?

None

Link to minimal reproduction or a simple code snippet

< Check TValue="bool">Check me out</ Check>
< Switch TValue="bool">Remember me</ Switch>

Steps to reproduce & bug description

Errors are allowed after MAUI iOS release.
Unable to create a generic service for type 'Blazorise.Check`1[System.Boolean]' because 'System.Boolean' is a ValueType. Native code to support creating generic services might not be available with native AOT.

What is expected?

MAUI hybrid development running on iOS - confirmed to be version-independent.

What is actually happening?

Unable to create a generic service for type 'Blazorise.Check`1[System.Boolean]' because 'System.Boolean' is a ValueType. Native code to support creating generic services might not be available with native AOT.
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.VerifyOpenGenericAotCompatibility(Type serviceType, Type[] genericTypeArguments)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateOpenGeneric(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot, Boolean throwOnConstraintViolation)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.TryCreateOpenGeneric(ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain)

What browsers do you see the problem on?

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions