Skip to content

Commit

Permalink
Suppressing more trim warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mkArtakMSFT committed Jan 31, 2025
1 parent c274bff commit 5a6a39a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,11 @@ internal PropertyModel CreatePropertyModel(PropertyInfo propertyInfo)
return actionModel;
}

[UnconditionalSuppressMessage("AssemblyLoadTrimming", "IL2026:RequiresUnreferencedCode",
[UnconditionalSuppressMessage("Trimming", "IL2026",
Justification = "The method utilizes reflection to get information about the return type of an action")]
[UnconditionalSuppressMessage("Trimming", "IL2060",
Justification = "The method utilizes reflection to get information about the return type of an action")]
[UnconditionalSuppressMessage("Trimming", "IL2072",
Justification = "The method utilizes reflection to get information about the return type of an action")]
internal static void AddReturnTypeMetadata(IList<SelectorModel> selectors, MethodInfo methodInfo)
{
Expand Down

0 comments on commit 5a6a39a

Please sign in to comment.