Skip to content

Commit

Permalink
Update src/Hosting/Hosting/src/GenericHost/GenericWebHostBuilder.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
  • Loading branch information
JamesNK and eerhardt committed Jan 3, 2023
1 parent 6722fbb commit 20dd7af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ private void UseStartup([DynamicallyAccessedMembers(StartupLinkerOptions.Accessi
};
});

[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 void InvokeContainer(GenericWebHostBuilder genericWebHostBuilder, ConfigureContainerBuilder configureContainerBuilder)
{
Expand Down

0 comments on commit 20dd7af

Please sign in to comment.