<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.6" />

RequiresDynamicCodeAttribute

Indicates that the specified method requires the ability to generate new code at runtime, for example through Reflection.
using System.Runtime.CompilerServices; namespace System.Diagnostics.CodeAnalysis { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Method, Inherited = false)] internal sealed class RequiresDynamicCodeAttribute : Attribute { public string Message { get; } [System.Runtime.CompilerServices.Nullable(2)] public string Url { [System.Runtime.CompilerServices.NullableContext(2)] get; [System.Runtime.CompilerServices.NullableContext(2)] set; } public RequiresDynamicCodeAttribute(string message) { Message = message; } } }