From 7c39171f2b83ff4474217857c4c237345e6a508d Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Wed, 3 Apr 2024 09:15:56 -0400 Subject: [PATCH 1/4] Add missing parentheses (#32234) --- aspnetcore/blazor/fundamentals/signalr.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/blazor/fundamentals/signalr.md b/aspnetcore/blazor/fundamentals/signalr.md index a756054c23fe..2bbd958fb933 100644 --- a/aspnetcore/blazor/fundamentals/signalr.md +++ b/aspnetcore/blazor/fundamentals/signalr.md @@ -835,7 +835,7 @@ protected override async Task OnInitializedAsync() :::moniker-end -When changing the values of the server timeout () or the Keep-Alive interval (: +When changing the values of the server timeout () or the Keep-Alive interval (): * The server timeout should be at least double the value assigned to the Keep-Alive interval. * The Keep-Alive interval should be less than or equal to half the value assigned to the server timeout. @@ -1284,7 +1284,7 @@ protected override async Task OnInitializedAsync() :::moniker range=">= aspnetcore-6.0" -When changing the values of the server timeout () or the Keep-Alive interval (: +When changing the values of the server timeout () or the Keep-Alive interval (): * The server timeout should be at least double the value assigned to the Keep-Alive interval. * The Keep-Alive interval should be less than or equal to half the value assigned to the server timeout. From 9fc0092c6e21b7acebffaa3e459ffdfb738e445b Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Wed, 3 Apr 2024 13:19:26 -0400 Subject: [PATCH 2/4] Drop .ToArray() from example (#32240) --- aspnetcore/blazor/fundamentals/routing.md | 1 - 1 file changed, 1 deletion(-) diff --git a/aspnetcore/blazor/fundamentals/routing.md b/aspnetcore/blazor/fundamentals/routing.md index 8a64cabfa9ca..abc3c1ac56b2 100644 --- a/aspnetcore/blazor/fundamentals/routing.md +++ b/aspnetcore/blazor/fundamentals/routing.md @@ -1656,7 +1656,6 @@ public IEnumerable GetRoutableComponents() .Where(t => t.IsSubclassOf(typeof(ComponentBase))) .Where(c => c.GetCustomAttributes(inherit: true) .OfType() - .ToArray() .Any()) .Where(c => c.Name != "Home" && c.Name != "Error") .OrderBy(o => o.Name) From a1b984e25b6d91f473fdaa58660e76df8c9ef74a Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Wed, 3 Apr 2024 07:48:26 -1000 Subject: [PATCH 3/4] asp0018 exception (#32230) * asp0018 exception * asp0018 exception * asp0018 exception --- aspnetcore/diagnostics/asp0018.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/diagnostics/asp0018.md b/aspnetcore/diagnostics/asp0018.md index 186b15ddca0e..eae875f96ad6 100644 --- a/aspnetcore/diagnostics/asp0018.md +++ b/aspnetcore/diagnostics/asp0018.md @@ -4,7 +4,7 @@ description: "Learn about analysis rule ASP0018: Unused route parameter" author: tdykstra monikerRange: '>= aspnetcore-8.0' ms.author: tdykstra -ms.date: 11/22/2022 +ms.date: 4/1/2024 uid: diagnostics/asp0018 --- # ASP0018: Unused route parameter @@ -40,4 +40,4 @@ app.MapGet("/{id}", (id) => ...); ## When to suppress warnings -Do not suppress a warning from this rule. +In general, do ***not*** suppress a warning from this rule without validating the route parameter is used. Currently properties within the bound model for [FromRoute](xref:Microsoft.AspNetCore.Mvc.FromRouteAttribute) attributes may not be analyzed. For more information, see [GitHub issue `#54212`](https://github.com/dotnet/aspnetcore/issues/54212). From 727e4a265765cb7fa45e786d97cbf49f47c6b7ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Adamczuk?= Date: Wed, 3 Apr 2024 19:53:37 +0200 Subject: [PATCH 4/4] Fixes #32092 (#32231) * Update ui-class.md https://github.com/dotnet/AspNetCore.Docs/issues/32092 * Apply suggestions from code review Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com> --------- Co-authored-by: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com> --- aspnetcore/razor-pages/ui-class.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/razor-pages/ui-class.md b/aspnetcore/razor-pages/ui-class.md index d4dc461aeb37..23fb22f323e7 100644 --- a/aspnetcore/razor-pages/ui-class.md +++ b/aspnetcore/razor-pages/ui-class.md @@ -24,9 +24,9 @@ For information on how to integrate npm and webpack into the build process for a * From Visual Studio select **Create new a new project**. * Select **Razor Class Library** > **Next**. * Name the library (for example, "RazorClassLib"), > **Create**. To avoid a file name collision with the generated view library, ensure the library name doesn't end in `.Views`. -* Select **Support pages and views** if you need to support views. By default, only Razor Pages are supported. Select **Create**. +* Select **Support pages and views** if you need the library to contain pages and/or views. By default, only Razor components are supported. Select **Create**. -The Razor class library (RCL) template defaults to Razor component development by default. The **Support pages and views** option supports pages and views. +The Razor class library (RCL) template defaults to Razor component development by default. The **Support pages and views** option supports pages and views. For more information on RCL support in Blazor, see . # [.NET Core CLI](#tab/netcore-cli)