Skip to content

Release v22.167.0

Choose a tag to compare

@github-actions github-actions released this 04 Nov 20:06
0e83855

Changed

  • FromRequestModelBinder and FromRequestModelBinderProvider are marked [RequiresUnreferencedCode] and [RequiresDynamicCode], so a trimmed or NativeAOT application that constructs them gets the warning at its own call site. [FromRequest] binding is part of MVC, which a trimmed publish turns off with CratisArcControllersSupport. (#3680)
  • AddIdentityProvider<TProvider>() and AddIdentityProvider(Type) now declare that they need the provider's public constructors, so registering a provider with AddIdentityProvider<MyProvider>() is safe to trim. AddIdentityProvider(ITypes) is marked [RequiresUnreferencedCode] because it finds the provider at runtime. (part of #3675)

Fixed

  • A concept rule from BaseValidator<T>.RuleFor no longer looks up the concept's Value property by name, so trimming cannot remove it. (part of #3674)