Skip to content

Commit a0b5073

Browse files
authored
Make 'Minimal API' a proper noun (#36450)
1 parent e397e98 commit a0b5073

File tree

71 files changed

+164
-164
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+164
-164
lines changed

aspnetcore/diagnostics/asp0011.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ uid: diagnostics/asp0011
1717

1818
## Cause
1919

20-
`ConfigureLogging` isn't the recommended strategy for configuring logging in a minimal API application.
20+
`ConfigureLogging` isn't the recommended strategy for configuring logging in a Minimal API application.
2121

2222
## Rule description
2323

24-
`ConfigureLogging` isn't the recommended strategy for configuring logging in a minimal API application.
24+
`ConfigureLogging` isn't the recommended strategy for configuring logging in a Minimal API application.
2525

2626
```csharp
2727
var builder = WebApplication.CreateBuilder(args);

aspnetcore/diagnostics/asp0012.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ uid: diagnostics/asp0012
1717

1818
## Cause
1919

20-
`ConfigureServices` isn't the recommended strategy for registering services in DI in a minimal API application.
20+
`ConfigureServices` isn't the recommended strategy for registering services in DI in a Minimal API application.
2121

2222
## Rule description
2323

24-
`ConfigureServices` isn't the recommended strategy for configuring logging in a minimal API application.
24+
`ConfigureServices` isn't the recommended strategy for configuring logging in a Minimal API application.
2525

2626
```csharp
2727
var builder = WebApplication.CreateBuilder(args);

aspnetcore/diagnostics/asp0013.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ uid: diagnostics/asp0013
1717

1818
## Cause
1919

20-
<xref:Microsoft.AspNetCore.Hosting.StartupBase.Configure%2A> isn't the recommended strategy for reading and writing to configuration in a minimal API app. `Configure` was designed to be used with [Web Host](/dotnet/api/microsoft.aspnetcore.hosting.iwebhostbuilder) or [.NET Generic Host](/dotnet/core/extensions/generic-host). In a minimal API app, [WebApplicationBuilder.Configuration](xref:Microsoft.AspNetCore.Builder.WebApplicationBuilder.Configuration) should be used to modify configuration directly.
20+
<xref:Microsoft.AspNetCore.Hosting.StartupBase.Configure%2A> isn't the recommended strategy for reading and writing to configuration in a Minimal API app. `Configure` was designed to be used with [Web Host](/dotnet/api/microsoft.aspnetcore.hosting.iwebhostbuilder) or [.NET Generic Host](/dotnet/core/extensions/generic-host). In a Minimal API app, [WebApplicationBuilder.Configuration](xref:Microsoft.AspNetCore.Builder.WebApplicationBuilder.Configuration) should be used to modify configuration directly.
2121

2222
## Rule description
2323

24-
`Configure` isn't the recommended strategy for configuring logging in a minimal API app.
24+
`Configure` isn't the recommended strategy for configuring logging in a Minimal API app.
2525

2626
```csharp
2727
var builder = WebApplication.CreateBuilder(args);

aspnetcore/diagnostics/asp0014.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ uid: diagnostics/asp0014
1717

1818
## Cause
1919

20-
Routes can be registered directly at the top-level of a minimal API application.
20+
Routes can be registered directly at the top-level of a Minimal API application.
2121

2222
## Rule description
2323

24-
Routes can be registered directly at the top-level of a minimal API application and don't need to be nested within a `UseEndpoints` call.
24+
Routes can be registered directly at the top-level of a Minimal API application and don't need to be nested within a `UseEndpoints` call.
2525

2626
```csharp
2727
var builder = WebApplication.CreateBuilder(args);

aspnetcore/diagnostics/asp0022.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Do not suppress a warning from this rule.
3333

3434
## Notes
3535

36-
[ASP0023](xref:diagnostics/asp0023) warns on route conflicts in ASP.NET Core MVC apps, this analyzer warns on route conflicts in [minimal API](xref:fundamentals/apis) apps.
36+
[ASP0023](xref:diagnostics/asp0023) warns on route conflicts in ASP.NET Core MVC apps, this analyzer warns on route conflicts in [Minimal API](xref:fundamentals/apis) apps.
3737

3838
This analyzer is intentionally conservative about duplicate routes it reports to avoid false positives:
3939

aspnetcore/diagnostics/asp0023.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ Do not suppress a warning from this rule.
3333

3434
## Notes
3535

36-
[ASP0022](xref:diagnostics/asp0022) warns on route conflicts in [minimal API](xref:fundamentals/apis) apps, this analyzer warns on route conflicts in ASP.NET Core MVC apps.
36+
[ASP0022](xref:diagnostics/asp0022) warns on route conflicts in [Minimal API](xref:fundamentals/apis) apps, this analyzer warns on route conflicts in ASP.NET Core MVC apps.

aspnetcore/fundamentals/aot/native-aot-tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ info: Microsoft.Hosting.Lifetime[0]
166166
* <xref:fundamentals/native-aot>
167167
* [Native AOT deployment](/dotnet/core/deploying/native-aot/)
168168
* [Using the configuration binder source generator](https://andrewlock.net/exploring-the-dotnet-8-preview-using-the-new-configuration-binder-source-generator/)
169-
* [The minimal API AOT compilation template](https://andrewlock.net/exploring-the-dotnet-8-preview-the-minimal-api-aot-template/)
169+
* [The Minimal API AOT compilation template](https://andrewlock.net/exploring-the-dotnet-8-preview-the-minimal-api-aot-template/)
170170
* [Comparing `WebApplication.CreateBuilder` to `CreateSlimBuilder`](https://andrewlock.net/exploring-the-dotnet-8-preview-comparing-createbuilder-to-the-new-createslimbuilder-method/)
171-
* [Exploring the new minimal API source generator](https://andrewlock.net/exploring-the-dotnet-8-preview-exploring-the-new-minimal-api-source-generator/)
171+
* [Exploring the new Minimal API source generator](https://andrewlock.net/exploring-the-dotnet-8-preview-exploring-the-new-minimal-api-source-generator/)
172172
* [Replacing method calls with Interceptors](https://andrewlock.net/exploring-the-dotnet-8-preview-changing-method-calls-with-interceptors/)
173173
* [Configuration-binding source generator](/dotnet/core/whats-new/dotnet-8#configuration-binding-source-generator)
174174

aspnetcore/fundamentals/aot/request-delegate-generator/diagnostics/rdg005.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This diagnostic is emitted by the [Request Delegate Generator](/aspnet/core/fund
2828

2929
### Rule description
3030

31-
The implementation of surrogate binding via the [`[AsParameters]`](xref:Microsoft.AspNetCore.Http.AsParametersAttribute) attribute in minimal APIs only supports types with concrete implementations. Using a parameter with an [abstract](/dotnet/csharp/language-reference/keywords/abstract) type as in the following sample produces the diagnostic.
31+
The implementation of surrogate binding via the [`[AsParameters]`](xref:Microsoft.AspNetCore.Http.AsParametersAttribute) attribute in Minimal APIs only supports types with concrete implementations. Using a parameter with an [abstract](/dotnet/csharp/language-reference/keywords/abstract) type as in the following sample produces the diagnostic.
3232

3333
:::code language="csharp" source="~/../AspNetCore.Docs.Samples/fundamentals/aot/diagnostics/Rdg5/Program.cs" id="snippet_1" highlight="13, 17-21"::: Id, string Task);
3434

aspnetcore/fundamentals/aot/request-delegate-generator/diagnostics/rdg010.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This diagnostic is emitted by the [Request Delegate Generator](/aspnet/core/fund
2727

2828
### Rule description
2929

30-
The implementation of surrogate binding via the [`[AsParameters]`](xref:Microsoft.AspNetCore.Http.AsParametersAttribute) attribute in minimal APIs only supports types that are not nullable.
30+
The implementation of surrogate binding via the [`[AsParameters]`](xref:Microsoft.AspNetCore.Http.AsParametersAttribute) attribute in Minimal APIs only supports types that are not nullable.
3131

3232
:::code language="csharp" source="~/../AspNetCore.Docs.Samples/fundamentals/aot/diagnostics/Rdg10/Program.cs" id="snippet_1" highlight="13":::
3333

aspnetcore/fundamentals/aot/request-delegate-generator/rdg.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ai-usage: ai-assisted
1818
1919
-->
2020

21-
The ASP.NET Core Request Delegate Generator (RDG) is a compile-time source generator that compiles route handlers provided to a minimal API to request delegates that can be processed by ASP.NET Core's routing infrastructure. The RDG is implicitly enabled when applications are published with AoT enabled or when [trimming is enabled](/dotnet/core/deploying/trimming/trimming-options#enable-trimming). The RDG generates trim and native AoT-friendly code.
21+
The ASP.NET Core Request Delegate Generator (RDG) is a compile-time source generator that compiles route handlers provided to a Minimal API to request delegates that can be processed by ASP.NET Core's routing infrastructure. The RDG is implicitly enabled when applications are published with AoT enabled or when [trimming is enabled](/dotnet/core/deploying/trimming/trimming-options#enable-trimming). The RDG generates trim and native AoT-friendly code.
2222

2323
> [!NOTE]
2424
> * The Native AOT feature is currently in preview.

0 commit comments

Comments
 (0)