Skip to content

Use of (dynamic) causes AOT compilation to fail #268

@SteveBush

Description

@SteveBush

Using dynamic in .NET MAUI can lead to issues with Ahead-of-Time (AOT) compilation, especially on platforms like iOS that do not support dynamic code generation using System.Reflection.Emit. This can result in errors such as PlatformNotSupported_ReflectionEmit.

Dark casts to (dynamic) in building the query pipeline. IOS and other Ahead of Time compiled executables don't support System. Reflection.Emit as they don't support compiling code at runtime for security reasons.

The request is to remove the casting to (dynamic) in the pipeline generation code. It's used to cast between IQueryHandler and Fallback generic types.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions