Skip to content

Commit 5a27fa3

Browse files
authored
Suppress IL2110 warning in RouteView.Render()
The latest update to the trim analyzer enabled analysis over compiler-generated fields, which surfaced this warning in the RouteView.Render() method. The analyzer warning is accurate and appears in the trimming tools, but was not previously found.
1 parent 318327f commit 5a27fa3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/aspnetcore/src/Components/Components/src/RouteView.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public Task SetParametersAsync(ParameterView parameters)
6868
/// Renders the component.
6969
/// </summary>
7070
/// <param name="builder">The <see cref="RenderTreeBuilder"/>.</param>
71+
[UnconditionalSuppressMessage("Trimming", "IL2110", Justification = "Layout components are preserved because the LayoutAttribute constructor parameter is correctly annotated.")]
7172
[UnconditionalSuppressMessage("Trimming", "IL2111", Justification = "Layout components are preserved because the LayoutAttribute constructor parameter is correctly annotated.")]
7273
[UnconditionalSuppressMessage("Trimming", "IL2118", Justification = "Layout components are preserved because the LayoutAttribute constructor parameter is correctly annotated.")]
7374
protected virtual void Render(RenderTreeBuilder builder)

0 commit comments

Comments
 (0)