From 7b9537fe0b58f845f218f7c92b036d074f1ba208 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Tue, 20 Dec 2022 20:36:26 +0800 Subject: [PATCH] Update src/Hosting/Hosting/src/Internal/StartupLoader.cs Co-authored-by: Eric Erhardt --- src/Hosting/Hosting/src/Internal/StartupLoader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hosting/Hosting/src/Internal/StartupLoader.cs b/src/Hosting/Hosting/src/Internal/StartupLoader.cs index 966fef483b1b..8a5332be0470 100644 --- a/src/Hosting/Hosting/src/Internal/StartupLoader.cs +++ b/src/Hosting/Hosting/src/Internal/StartupLoader.cs @@ -64,7 +64,7 @@ public static StartupMethods LoadMethods(IServiceProvider hostingServiceProvider return new StartupMethods(instance, configureMethod.Build(instance), builder.Build()); [return: DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] - [UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling.", + [UnconditionalSuppressMessage("AOT", "IL3050:RequiresDynamicCode", Justification = "There is a runtime check for ValueType startup container. It's unlikely anyone will use a ValueType here.")] static Type CreateConfigureServicesDelegateBuilder(Type type) {