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.
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.