v1.0.0-beta.4
Pre-release
Pre-release
What's Changed
AOT and Trim Compatibility (Issue #7)
- Add
[DynamicallyAccessedMembers]attributes to eliminate IL2104/IL3053 warnings - Add
[RequiresUnreferencedCode]and[RequiresDynamicCode]attributes for transparent AOT support on configuration-binding overload - Mark assembly as AOT-compatible (
IsAotCompatible) and trimmable (IsTrimmable) - Remove AOT warning suppressions from Directory.Build.props
Notes
The AddFluentValidatedOptions<TOptions, TValidator>(IConfiguration) overload that uses configuration binding has inherent AOT limitations due to Microsoft's Bind<T>() using reflection. The attributes transparently communicate this to consumers.
For full AOT support, consumers can:
- Use
EnableConfigurationBindingGeneratorin their projects - Use the
AddFluentValidatedOptions<TOptions, TValidator>(Action<TOptions>)overload which is fully AOT-compatible
Full Changelog: v1.0.0-beta.3...v1.0.0-beta.4