From 46e2b031417d02d4fbeaee6e9db8fce4a78ca358 Mon Sep 17 00:00:00 2001 From: Dean Popovic Date: Wed, 26 Mar 2025 22:08:04 +0200 Subject: [PATCH 1/6] Update adding-view.md (#35049) * Update adding-view.md VS 17.10.5 defaults a certain user step without user having to take an additional step. * Update aspnetcore/tutorials/first-mvc-app/adding-view.md --------- Co-authored-by: Wade Pickett --- aspnetcore/tutorials/first-mvc-app/adding-view.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/tutorials/first-mvc-app/adding-view.md b/aspnetcore/tutorials/first-mvc-app/adding-view.md index d72040788d36..277f3b18e05a 100644 --- a/aspnetcore/tutorials/first-mvc-app/adding-view.md +++ b/aspnetcore/tutorials/first-mvc-app/adding-view.md @@ -45,7 +45,7 @@ Right-click on the *Views* folder, and then **Add > New Folder** and name the fo Right-click on the *Views/HelloWorld* folder, and then **Add > New Item**. -In the **Add New Item** dialog select **Show All Templates**. +In the **Add New Item** dialog, if the option to **Show All Templates** is available, select it. In the **Add New Item - MvcMovie** dialog: From 7dc582f682905bb8f4ed63b90eeb5be182a1d707 Mon Sep 17 00:00:00 2001 From: Ben Hopkins Date: Wed, 26 Mar 2025 21:13:23 +0000 Subject: [PATCH 2/6] Added ASP0027 document --- aspnetcore/diagnostics/asp0027.md | 32 +++++++++++++++++++++++++++++++ aspnetcore/toc.yml | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 aspnetcore/diagnostics/asp0027.md diff --git a/aspnetcore/diagnostics/asp0027.md b/aspnetcore/diagnostics/asp0027.md new file mode 100644 index 000000000000..df8041c3ba52 --- /dev/null +++ b/aspnetcore/diagnostics/asp0027.md @@ -0,0 +1,32 @@ +--- +title: "ASP0027: Analyzer to suggest removing unnecessary public Program class declaration" +ms.date: 25/03/2025 +description: "Learn about analysis rule ASP0027: Unnecessary public Program class declaration" +author: benhopkinstech +monikerRange: '>= aspnetcore-10.0' +ms.author: benhopkinstech +uid: diagnostics/asp0027 +--- +# ASP0027: Unnecessary `public Program` class declaration" + +| | Value | +| - | - | +| **Rule ID** | ASP0027 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | + +## Cause + +An unnecessary `public Program` class declaration within the `Program.cs` file. + +## Rule description + +Suggests to remove the unnecessary `public Program` class declaration as this is no longer required to make the generated `Program` class public in ASP.NET Core apps. + +## How to fix violations + +To fix a violation of this rule, remove the `public Program` class declaration within the `Program.cs` file. + +## When to suppress warnings + +The severity level of this diagnostic is Information. While the warning can be suppressed if necessary, it is recommended to remove the declaration as it is no longer required. diff --git a/aspnetcore/toc.yml b/aspnetcore/toc.yml index 684beb6062d8..b726bc67fafb 100644 --- a/aspnetcore/toc.yml +++ b/aspnetcore/toc.yml @@ -1425,6 +1425,8 @@ items: uid: diagnostics/asp0025 - name: ASP0026 uid: diagnostics/asp0026 + - name: ASP0027 + uid: diagnostics/asp0027 - name: ASP0028 uid: diagnostics/asp0028 - name: BL0001 From 134598dcb2decdd17be99f3566c4ae3db878ac0e Mon Sep 17 00:00:00 2001 From: Ben Hopkins Date: Wed, 26 Mar 2025 21:44:26 +0000 Subject: [PATCH 3/6] Fixed date format --- aspnetcore/diagnostics/asp0027.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/diagnostics/asp0027.md b/aspnetcore/diagnostics/asp0027.md index df8041c3ba52..0284b0135a9c 100644 --- a/aspnetcore/diagnostics/asp0027.md +++ b/aspnetcore/diagnostics/asp0027.md @@ -1,6 +1,6 @@ --- title: "ASP0027: Analyzer to suggest removing unnecessary public Program class declaration" -ms.date: 25/03/2025 +ms.date: 03/25/2025 description: "Learn about analysis rule ASP0027: Unnecessary public Program class declaration" author: benhopkinstech monikerRange: '>= aspnetcore-10.0' From 152f8b01a283bc307e27e6fd14e9f1aececa56d2 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Wed, 26 Mar 2025 17:53:29 -0400 Subject: [PATCH 4/6] Update aspnetcore/diagnostics/asp0027.md --- aspnetcore/diagnostics/asp0027.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/diagnostics/asp0027.md b/aspnetcore/diagnostics/asp0027.md index 0284b0135a9c..a1f702fa6330 100644 --- a/aspnetcore/diagnostics/asp0027.md +++ b/aspnetcore/diagnostics/asp0027.md @@ -4,7 +4,7 @@ ms.date: 03/25/2025 description: "Learn about analysis rule ASP0027: Unnecessary public Program class declaration" author: benhopkinstech monikerRange: '>= aspnetcore-10.0' -ms.author: benhopkinstech +ms.author: riande uid: diagnostics/asp0027 --- # ASP0027: Unnecessary `public Program` class declaration" From a14ba0d54e8ba309b57c23fb0ca73b71d272e682 Mon Sep 17 00:00:00 2001 From: Ben Hopkins Date: Wed, 26 Mar 2025 21:55:09 +0000 Subject: [PATCH 5/6] Updated md table formatting of the diagnostics (#35062) --- aspnetcore/diagnostics/asp0000.md | 10 +++++----- aspnetcore/diagnostics/asp0001.md | 10 +++++----- aspnetcore/diagnostics/asp0003.md | 10 +++++----- aspnetcore/diagnostics/asp0004.md | 10 +++++----- aspnetcore/diagnostics/asp0005.md | 10 +++++----- aspnetcore/diagnostics/asp0006.md | 10 +++++----- aspnetcore/diagnostics/asp0007.md | 10 +++++----- aspnetcore/diagnostics/asp0008.md | 10 +++++----- aspnetcore/diagnostics/asp0009.md | 10 +++++----- aspnetcore/diagnostics/asp0010.md | 10 +++++----- aspnetcore/diagnostics/asp0011.md | 10 +++++----- aspnetcore/diagnostics/asp0012.md | 10 +++++----- aspnetcore/diagnostics/asp0013.md | 10 +++++----- aspnetcore/diagnostics/asp0014.md | 11 ++++++----- aspnetcore/diagnostics/asp0015.md | 10 +++++----- aspnetcore/diagnostics/asp0016.md | 10 +++++----- aspnetcore/diagnostics/asp0017.md | 10 +++++----- aspnetcore/diagnostics/asp0018.md | 10 +++++----- aspnetcore/diagnostics/asp0019.md | 10 +++++----- aspnetcore/diagnostics/asp0020.md | 10 +++++----- aspnetcore/diagnostics/asp0021.md | 10 +++++----- aspnetcore/diagnostics/asp0022.md | 10 +++++----- aspnetcore/diagnostics/asp0023.md | 10 +++++----- aspnetcore/diagnostics/asp0024.md | 10 +++++----- aspnetcore/diagnostics/asp0025.md | 10 +++++----- aspnetcore/diagnostics/asp0026.md | 10 +++++----- aspnetcore/diagnostics/bl0001.md | 10 +++++----- aspnetcore/diagnostics/bl0002.md | 10 +++++----- aspnetcore/diagnostics/bl0003.md | 10 +++++----- aspnetcore/diagnostics/bl0004.md | 10 +++++----- aspnetcore/diagnostics/bl0005.md | 10 +++++----- aspnetcore/diagnostics/bl0006.md | 10 +++++----- aspnetcore/diagnostics/mvc1000.md | 8 ++++---- aspnetcore/diagnostics/mvc1001.md | 8 ++++---- aspnetcore/diagnostics/mvc1002.md | 8 ++++---- aspnetcore/diagnostics/mvc1003.md | 8 ++++---- aspnetcore/diagnostics/mvc1004.md | 8 ++++---- aspnetcore/diagnostics/mvc1005.md | 8 ++++---- aspnetcore/diagnostics/mvc1006.md | 8 ++++---- 39 files changed, 189 insertions(+), 188 deletions(-) diff --git a/aspnetcore/diagnostics/asp0000.md b/aspnetcore/diagnostics/asp0000.md index 29848148d8d2..4d3a1bca141c 100644 --- a/aspnetcore/diagnostics/asp0000.md +++ b/aspnetcore/diagnostics/asp0000.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0000 --- # ASP0000: Do not call 'IServiceCollection.BuildServiceProvider' in 'ConfigureServices' -| | Value | -|-|-| -| **Rule ID** |ASP0000| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0000 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0001.md b/aspnetcore/diagnostics/asp0001.md index 38e8fcbada77..ffbf6ef5d03c 100644 --- a/aspnetcore/diagnostics/asp0001.md +++ b/aspnetcore/diagnostics/asp0001.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0001 --- # ASP0001: Authorization middleware is incorrectly configured -| | Value | -|-|-| -| **Rule ID** |ASP0001| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0001 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0003.md b/aspnetcore/diagnostics/asp0003.md index 3f40c1f4897c..392b6da6c5d9 100644 --- a/aspnetcore/diagnostics/asp0003.md +++ b/aspnetcore/diagnostics/asp0003.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0003 --- # ASP0003: Do not use model binding attributes with route handlers -| | Value | -|-|-| -| **Rule ID** |ASP0003| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0003 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0004.md b/aspnetcore/diagnostics/asp0004.md index 632da9c760aa..84fbc988393b 100644 --- a/aspnetcore/diagnostics/asp0004.md +++ b/aspnetcore/diagnostics/asp0004.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0004 --- # ASP0004: Do not use action results with route handlers -| | Value | -|-|-| -| **Rule ID** |ASP0004| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0004 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0005.md b/aspnetcore/diagnostics/asp0005.md index 5b0606629422..839d54a8f03e 100644 --- a/aspnetcore/diagnostics/asp0005.md +++ b/aspnetcore/diagnostics/asp0005.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0005 --- # ASP0005: Do not place attribute on method called by route handler lambda -| | Value | -|-|-| -| **Rule ID** |ASP0005| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0005 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0006.md b/aspnetcore/diagnostics/asp0006.md index aeeabec6716d..82d98f9fdc7a 100644 --- a/aspnetcore/diagnostics/asp0006.md +++ b/aspnetcore/diagnostics/asp0006.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0006 --- # ASP0006: Do not use non-literal sequence numbers -| | Value | -|-|-| -| **Rule ID** |ASP0006| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0006 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0007.md b/aspnetcore/diagnostics/asp0007.md index 06013021a444..942b2069b611 100644 --- a/aspnetcore/diagnostics/asp0007.md +++ b/aspnetcore/diagnostics/asp0007.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0007 --- # ASP0007: Route parameter and argument optionality is mismatched -| | Value | -|-|-| -| **Rule ID** |ASP0007| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0007 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0008.md b/aspnetcore/diagnostics/asp0008.md index 0a571bcde225..cd52f9f86782 100644 --- a/aspnetcore/diagnostics/asp0008.md +++ b/aspnetcore/diagnostics/asp0008.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0008 --- # ASP0008: Do not use ConfigureWebHost with WebApplicationBuilder.Host -| | Value | -|-|-| -| **Rule ID** |ASP0008| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0008 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0009.md b/aspnetcore/diagnostics/asp0009.md index a66e4058eeb1..79066eee7b5d 100644 --- a/aspnetcore/diagnostics/asp0009.md +++ b/aspnetcore/diagnostics/asp0009.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0009 --- # ASP0009: Do not use Configure with WebApplicationBuilder.WebHost -| | Value | -|-|-| -| **Rule ID** |ASP0009| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0009 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0010.md b/aspnetcore/diagnostics/asp0010.md index 85f32bcbcf22..3f0de30adc1b 100644 --- a/aspnetcore/diagnostics/asp0010.md +++ b/aspnetcore/diagnostics/asp0010.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0010 --- # ASP0010: Do not use UseStartup with WebApplicationBuilder.WebHost -| | Value | -|-|-| -| **Rule ID** |ASP0010| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0010 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0011.md b/aspnetcore/diagnostics/asp0011.md index 736dc57fc5e3..96852cee4093 100644 --- a/aspnetcore/diagnostics/asp0011.md +++ b/aspnetcore/diagnostics/asp0011.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0011 --- # ASP0011: Suggest using builder.Logging over Host.ConfigureLogging or WebHost.ConfigureLogging -| | Value | -|-|-| -| **Rule ID** |ASP0011| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0011 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0012.md b/aspnetcore/diagnostics/asp0012.md index bda28f405d90..52f5427fbcb7 100644 --- a/aspnetcore/diagnostics/asp0012.md +++ b/aspnetcore/diagnostics/asp0012.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0012 --- # ASP0012: Suggest using builder.Services over Host.ConfigureServices or WebHost.ConfigureServices -| | Value | -|-|-| -| **Rule ID** |ASP0012| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0012 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0013.md b/aspnetcore/diagnostics/asp0013.md index c03814481ed1..5ac3afd94650 100644 --- a/aspnetcore/diagnostics/asp0013.md +++ b/aspnetcore/diagnostics/asp0013.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0013 --- # ASP0013: Suggest switching from using Configure methods to WebApplicationBuilder.Configuration -| | Value | -|-|-| -| **Rule ID** |ASP0013| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0013 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0014.md b/aspnetcore/diagnostics/asp0014.md index 85f63e38aa88..b736884316b0 100644 --- a/aspnetcore/diagnostics/asp0014.md +++ b/aspnetcore/diagnostics/asp0014.md @@ -8,11 +8,12 @@ ms.date: 09/27/2022 uid: diagnostics/asp0014 --- # ASP0014: Suggest using top level route registrations -| | Value | -|-|-| -| **Rule ID** |ASP0014| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| + +| | Value | +| - | - | +| **Rule ID** | ASP0014 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0015.md b/aspnetcore/diagnostics/asp0015.md index 5d15e522e6cb..a18a0e464482 100644 --- a/aspnetcore/diagnostics/asp0015.md +++ b/aspnetcore/diagnostics/asp0015.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0015 --- # ASP0015: Suggest using IHeaderDictionary properties -| | Value | -|-|-| -| **Rule ID** |ASP0015| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0015 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0016.md b/aspnetcore/diagnostics/asp0016.md index 30d9f47d4715..cbff4d95761c 100644 --- a/aspnetcore/diagnostics/asp0016.md +++ b/aspnetcore/diagnostics/asp0016.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0016 --- # ASP0016: Do not return a value from RequestDelegate -| | Value | -|-|-| -| **Rule ID** |ASP0016| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0016 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0017.md b/aspnetcore/diagnostics/asp0017.md index 147e4fbecbfd..f01483419df0 100644 --- a/aspnetcore/diagnostics/asp0017.md +++ b/aspnetcore/diagnostics/asp0017.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0017 --- # ASP0017: Invalid route pattern -| | Value | -|-|-| -| **Rule ID** |ASP0017| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0017 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0018.md b/aspnetcore/diagnostics/asp0018.md index b817756a512e..5ed8c708b5c3 100644 --- a/aspnetcore/diagnostics/asp0018.md +++ b/aspnetcore/diagnostics/asp0018.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0018 --- # ASP0018: Unused route parameter -| | Value | -|-|-| -| **Rule ID** |ASP0018| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0018 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0019.md b/aspnetcore/diagnostics/asp0019.md index f4e03c28ad82..8e9011d26f55 100644 --- a/aspnetcore/diagnostics/asp0019.md +++ b/aspnetcore/diagnostics/asp0019.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0019 --- # ASP0019: Suggest using IHeaderDictionary.Append or the indexer -| | Value | -|-|-| -| **Rule ID** |ASP0019| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0019 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0020.md b/aspnetcore/diagnostics/asp0020.md index 794a1f941fac..913dab5ebb0e 100644 --- a/aspnetcore/diagnostics/asp0020.md +++ b/aspnetcore/diagnostics/asp0020.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0020 --- # ASP0020: Complex types referenced by route parameters must be parsable -| | Value | -|-|-| -| **Rule ID** |ASP0020| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0020 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0021.md b/aspnetcore/diagnostics/asp0021.md index 0ecbb94bcb76..0aba1d9ced8f 100644 --- a/aspnetcore/diagnostics/asp0021.md +++ b/aspnetcore/diagnostics/asp0021.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0021 --- # ASP0021: The return type of the BindAsync method must be `ValueTask`. -| | Value | -|-|-| -| **Rule ID** |ASP0021| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0021 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0022.md b/aspnetcore/diagnostics/asp0022.md index 4c9feddb962d..88c1d1a83db2 100644 --- a/aspnetcore/diagnostics/asp0022.md +++ b/aspnetcore/diagnostics/asp0022.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0022 --- # ASP0022: Route conflict detected between route handlers -| | Value | -|-|-| -| **Rule ID** |ASP0022| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0022 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0023.md b/aspnetcore/diagnostics/asp0023.md index 989b78918d8f..2c3753b85364 100644 --- a/aspnetcore/diagnostics/asp0023.md +++ b/aspnetcore/diagnostics/asp0023.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0023 --- # ASP0023: Route conflict detected between route handlers -| | Value | -|-|-| -| **Rule ID** |ASP0023| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0023 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0024.md b/aspnetcore/diagnostics/asp0024.md index 8a5cbb4ba92f..5b1d570150c2 100644 --- a/aspnetcore/diagnostics/asp0024.md +++ b/aspnetcore/diagnostics/asp0024.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0024 --- # ASP0024: Route handler has multiple parameters with the `[FromBody]` attribute -| | Value | -|-|-| -| **Rule ID** |ASP0024| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0024 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0025.md b/aspnetcore/diagnostics/asp0025.md index 430ad3b4144c..d3154df3b1a2 100644 --- a/aspnetcore/diagnostics/asp0025.md +++ b/aspnetcore/diagnostics/asp0025.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0025 --- # ASP0025: Use AddAuthorizationBuilder to register authorization services and construct policies. -| | Value | -|-|-| -| **Rule ID** |ASP0025| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0025 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/asp0026.md b/aspnetcore/diagnostics/asp0026.md index 0b12890a1106..786d2daa5cf0 100644 --- a/aspnetcore/diagnostics/asp0026.md +++ b/aspnetcore/diagnostics/asp0026.md @@ -9,11 +9,11 @@ uid: diagnostics/asp0026 --- # ASP0026: `[Authorize]` is overridden by `[AllowAnonymous]` from "farther away" -| | Value | -|-|-| -| **Rule ID** |ASP0026| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | ASP0026 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/bl0001.md b/aspnetcore/diagnostics/bl0001.md index cbd28e9e1f91..9575e1bfcb22 100644 --- a/aspnetcore/diagnostics/bl0001.md +++ b/aspnetcore/diagnostics/bl0001.md @@ -9,11 +9,11 @@ uid: diagnostics/bl0001 --- # BL0001: Component parameter should have public setters -| | Value | -|-|-| -| **Rule ID** |BL0001| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Breaking| +| | Value | +| - | - | +| **Rule ID** | BL0001 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Breaking | ## Cause diff --git a/aspnetcore/diagnostics/bl0002.md b/aspnetcore/diagnostics/bl0002.md index 1ea70f986888..031ab2853b11 100644 --- a/aspnetcore/diagnostics/bl0002.md +++ b/aspnetcore/diagnostics/bl0002.md @@ -9,11 +9,11 @@ uid: diagnostics/bl0002 --- # BL0002: Component has multiple CaptureUnmatchedValues parameters -| | Value | -|-|-| -| **Rule ID** |BL0002| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | BL0002 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/bl0003.md b/aspnetcore/diagnostics/bl0003.md index 9c4a0519e637..2f2019992ddc 100644 --- a/aspnetcore/diagnostics/bl0003.md +++ b/aspnetcore/diagnostics/bl0003.md @@ -9,11 +9,11 @@ uid: diagnostics/bl0003 --- # BL0003: Component parameter with CaptureUnmatchedValues has the wrong type -| | Value | -|-|-| -| **Rule ID** |BL0003| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Breaking| +| | Value | +| - | - | +| **Rule ID** | BL0003 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Breaking | ## Cause diff --git a/aspnetcore/diagnostics/bl0004.md b/aspnetcore/diagnostics/bl0004.md index fc1dad7fc3eb..6809b589133f 100644 --- a/aspnetcore/diagnostics/bl0004.md +++ b/aspnetcore/diagnostics/bl0004.md @@ -9,11 +9,11 @@ uid: diagnostics/bl0004 --- # BL0004: Component parameter should be public -| | Value | -|-|-| -| **Rule ID** |BL0004| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Breaking| +| | Value | +| - | - | +| **Rule ID** | BL0004 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Breaking | ## Cause diff --git a/aspnetcore/diagnostics/bl0005.md b/aspnetcore/diagnostics/bl0005.md index b8a2cfa33f5b..408ca61d16c4 100644 --- a/aspnetcore/diagnostics/bl0005.md +++ b/aspnetcore/diagnostics/bl0005.md @@ -9,11 +9,11 @@ uid: diagnostics/bl0005 --- # BL0005: Component parameter should not be set outside of its component -| | Value | -|-|-| -| **Rule ID** |BL0005| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | BL0005 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/bl0006.md b/aspnetcore/diagnostics/bl0006.md index 855063befe66..b7354ad31a97 100644 --- a/aspnetcore/diagnostics/bl0006.md +++ b/aspnetcore/diagnostics/bl0006.md @@ -9,11 +9,11 @@ uid: diagnostics/bl0006 --- # BL0006: Do not use RenderTree types -| | Value | -|-|-| -| **Rule ID** |BL0006| -| **Category** |Usage| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | BL0006 | +| **Category** | Usage | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/mvc1000.md b/aspnetcore/diagnostics/mvc1000.md index 3a09a7da3e10..c40082e07be6 100644 --- a/aspnetcore/diagnostics/mvc1000.md +++ b/aspnetcore/diagnostics/mvc1000.md @@ -9,10 +9,10 @@ uid: diagnostics/mvc1000 --- # MVC1000: Use of IHtmlHelper.Partial should be avoided -| | Value | -|-|-| -| **Rule ID** |MVC1000| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | MVC1000 | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/mvc1001.md b/aspnetcore/diagnostics/mvc1001.md index b444b79b11c6..1ea25e1e7344 100644 --- a/aspnetcore/diagnostics/mvc1001.md +++ b/aspnetcore/diagnostics/mvc1001.md @@ -9,10 +9,10 @@ uid: diagnostics/mvc1001 --- # MVC1001: Filters cannot be applied to page handler methods -| | Value | -|-|-| -| **Rule ID** |MVC1001| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | MVC1001 | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/mvc1002.md b/aspnetcore/diagnostics/mvc1002.md index ce624d6897cc..ce307024dbcf 100644 --- a/aspnetcore/diagnostics/mvc1002.md +++ b/aspnetcore/diagnostics/mvc1002.md @@ -9,10 +9,10 @@ uid: diagnostics/mvc1002 --- # MVC1002: Route attribute cannot be applied to page handler methods -| | Value | -|-|-| -| **Rule ID** |MVC1002| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | MVC1002 | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/mvc1003.md b/aspnetcore/diagnostics/mvc1003.md index 3da95be639a6..49eb4f6e6ae0 100644 --- a/aspnetcore/diagnostics/mvc1003.md +++ b/aspnetcore/diagnostics/mvc1003.md @@ -9,10 +9,10 @@ uid: diagnostics/mvc1003 --- # MVC1003: Route attributes cannot be applied to page models -| | Value | -|-|-| -| **Rule ID** |MVC1003| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | MVC1003 | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/mvc1004.md b/aspnetcore/diagnostics/mvc1004.md index 4af5ce000ee0..879f13c17a91 100644 --- a/aspnetcore/diagnostics/mvc1004.md +++ b/aspnetcore/diagnostics/mvc1004.md @@ -9,10 +9,10 @@ uid: diagnostics/mvc1004 --- # MVC1004: Rename model bound parameter -| | Value | -|-|-| -| **Rule ID** |MVC1004| -| **Fix is breaking or non-breaking** |Breaking| +| | Value | +| - | - | +| **Rule ID** | MVC1004 | +| **Fix is breaking or non-breaking** | Breaking | ## Cause diff --git a/aspnetcore/diagnostics/mvc1005.md b/aspnetcore/diagnostics/mvc1005.md index f45e896e757d..91ab76377c2e 100644 --- a/aspnetcore/diagnostics/mvc1005.md +++ b/aspnetcore/diagnostics/mvc1005.md @@ -9,10 +9,10 @@ uid: diagnostics/mvc1005 --- # MVC1005: Cannot use UseMvc with Endpoint Routing -| | Value | -|-|-| -| **Rule ID** |MVC1005| -| **Fix is breaking or non-breaking** |Non-breaking| +| | Value | +| - | - | +| **Rule ID** | MVC1005 | +| **Fix is breaking or non-breaking** | Non-breaking | ## Cause diff --git a/aspnetcore/diagnostics/mvc1006.md b/aspnetcore/diagnostics/mvc1006.md index 37889e08a1f3..365ab98c84f3 100644 --- a/aspnetcore/diagnostics/mvc1006.md +++ b/aspnetcore/diagnostics/mvc1006.md @@ -9,10 +9,10 @@ uid: diagnostics/mvc1006 --- # MVC1006: Methods containing TagHelpers must be async and return Task -| | Value | -|-|-| -| **Rule ID** |MVC1006| -| **Fix is breaking or non-breaking** |Breaking| +| | Value | +| - | - | +| **Rule ID** | MVC1006 | +| **Fix is breaking or non-breaking** | Breaking | ## Cause From 3cc14f1cb4053cb45d0780288aa51b72fd9a5352 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Wed, 26 Mar 2025 12:27:34 -1000 Subject: [PATCH 6/6] Update native-aot.md Remove history lesson --- aspnetcore/fundamentals/native-aot.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/aspnetcore/fundamentals/native-aot.md b/aspnetcore/fundamentals/native-aot.md index 39cc12344c78..9e9898d5ca6b 100644 --- a/aspnetcore/fundamentals/native-aot.md +++ b/aspnetcore/fundamentals/native-aot.md @@ -21,8 +21,6 @@ By [Mitch Denny](https://github.com/mitchdenny) --> :::moniker range=">= aspnetcore-9.0" -ASP.NET Core 8.0 introduces support for [.NET native ahead-of-time (AOT)](/dotnet/core/deploying/native-aot/). - For Blazor WebAssembly Native AOT guidance, which adds to or supersedes the guidance in this article, see . ## Why use Native AOT with ASP.NET Core