Skip to content

Commit 8b4cbc4

Browse files
Merge pull request #35438 from dotnet/main
Merge to Live
2 parents 9760ec3 + 0656adf commit 8b4cbc4

File tree

6 files changed

+54
-20
lines changed

6 files changed

+54
-20
lines changed

aspnetcore/blazor/performance/webassembly-browser-developer-tools-diagnostics.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,29 @@ Configure the sample interval in the app's project file. In the following exampl
7979

8080
## Call specification (:::no-loc text="callspec":::)
8181

82-
If you want to filter profiled methods, you can use call specification (:::no-loc text="callspec":::). For more information, see [Trace MonoVM profiler events during startup](https://github.com/dotnet/runtime/blob/main/docs/design/mono/diagnostics-tracing.md#trace-monovm-profiler-events-during-startup).
82+
If you want to filter profiled methods, use call specification (:::no-loc text="callspec":::).
8383

84-
Add `callspec` to the `browser` WebAssembly profiler in the `<WasmProfilers>` element. In the following example, the `{APP NAMESPACE}` placeholder is the app's namespace:
84+
Add `callspec` with a filter to the `browser` WebAssembly profiler in the `<WasmProfilers>` element:
85+
86+
```xml
87+
<WasmProfilers>browser:callspec={FILTER};</WasmProfilers>
88+
```
89+
90+
Permissiable `{FILTER}` placeholder values are shown in the following table.
91+
92+
Filter | Description
93+
--- | ---
94+
`all` | All assemblies
95+
`none` | No assemblies
96+
`program` | Entry point assembly
97+
`{ASSEMBLY}` | Specifies an assembly (`{ASSEMBLY}`)
98+
`M:Type:{METHOD}` | Specifies a method (`{METHOD}`)
99+
`N:{NAMESPACE}` | Specifies a namespace (`{NAMESPACE}`)
100+
`T:{TYPE}` | Specifies a type (`{TYPE}`)
101+
`+EXPR` | Includes expression
102+
`-EXPR` | Excludes expression
103+
104+
In the following example, profiled methods are filtered to the app's namespace, which is represented by the `{APP NAMESPACE}` placeholder:
85105

86106
```xml
87107
<WasmProfilers>browser:callspec=N:{APP NAMESPACE};</WasmProfilers>
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
> [!NOTE]
2-
> * The Native AOT feature is currently in preview.
3-
> * In .NET 8, not all ASP.NET Core features are compatible with Native AOT.
2+
> Not all ASP.NET Core features are compatible with Native AOT.

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

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,28 @@ ms.topic: tutorial
77
content_well_notification: AI-contribution
88
ms.author: midenn
99
ms.custom: mvc
10-
ms.date: 08/10/2023
10+
ms.date: 5/10/2023
1111
uid: fundamentals/native-aot-tutorial
1212
ai-usage: ai-assisted
1313
---
1414
# Tutorial: Publish an ASP.NET Core app using Native AOT
1515

16-
<!-- UPDATE 9.0 Activate after release and INCLUDE is updated
16+
[.NET native ahead-of-time (AOT)](/dotnet/core/deploying/native-aot/) is available in ASP.NET Core.
1717

18-
[!INCLUDE[](~/includes/not-latest-version.md)]
19-
20-
-->
18+
> [!NOTE]
19+
> Minimal APIs are ***not*** compatible with native AOT.
2120
22-
ASP.NET Core 8.0 introduces support for [.NET native ahead-of-time (AOT)](/dotnet/core/deploying/native-aot/).
21+
See [Native AOT deployment](/dotnet/core/deploying/native-aot/) for more information, including:
2322

24-
> [!NOTE]
25-
> * The Native AOT feature is currently in preview.
26-
> * In .NET 8, not all ASP.NET Core features are compatible with Native AOT.
27-
> * Tabs are provided for the [.NET CLI](/dotnet/core/tools/) and [Visual Studio](https://visualstudio.microsoft.com/downloads/) instructions:
28-
> * Visual Studio is a prerequisite even if the CLI tab is selected.
29-
> * The CLI must be used to publish even if the Visual Studio tab is selected.
23+
* [Limitations of Native AOT deployment](/dotnet/core/deploying/native-aot/)
24+
* [Supported platforms](/dotnet/core/deploying/native-aot/)
3025

3126
## Prerequisites
3227

33-
# [.NET CLI](#tab/net-cli)
34-
35-
* [!INCLUDE[](~/includes/8.0-SDK.md)]
28+
# [.NET CLI](#tab/net-cli)
29+
<!-- explicitly specify SDK version or we could just list
30+
https://dotnet.microsoft.com//download and tell them to install the version they're targeting -->
31+
* [.NET SDK](https://dotnet.microsoft.com//download)
3632
* On Linux, see [Prerequisites for Native AOT deployment](/dotnet/core/deploying/native-aot/?tabs=net8plus#prerequisites-for-native-aot-deployment).
3733
* [Visual Studio 2022](https://visualstudio.microsoft.com/downloads/) with the **Desktop development with C++** workload installed.
3834

@@ -43,7 +39,7 @@ ASP.NET Core 8.0 introduces support for [.NET native ahead-of-time (AOT)](/dotne
4339
4440
# [Visual Studio](#tab/visual-studio)
4541

46-
* [!INCLUDE[](~/includes/8.0-SDK.md)]
42+
[.NET SDK](https://dotnet.microsoft.com//download)
4743

4844
* [Visual Studio 2022](https://visualstudio.microsoft.com/downloads/) with the following workloads installed:
4945
* **ASP.NET and web development**
@@ -175,3 +171,4 @@ info: Microsoft.Hosting.Lifetime[0]
175171
* [Exploring the new minimal API source generator](https://andrewlock.net/exploring-the-dotnet-8-preview-exploring-the-new-minimal-api-source-generator/)
176172
* [Replacing method calls with Interceptors](https://andrewlock.net/exploring-the-dotnet-8-preview-changing-method-calls-with-interceptors/)
177173
* [Configuration-binding source generator](/dotnet/core/whats-new/dotnet-8#configuration-binding-source-generator)
174+

aspnetcore/includes/10.0-SDK.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[.NET 10.0 SDK](https://dotnet.microsoft.com/download/dotnet/10.0)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
:::moniker-end
2+
:::moniker range="= aspnetcore-8.0"
3+
* [!INCLUDE[](~/includes/8.0-SDK.md)]
4+
:::moniker-end
5+
:::moniker range="= aspnetcore-9.0"
6+
* [!INCLUDE[](~/includes/9.0-SDK.md)]
7+
:::moniker-end
8+
:::moniker range=">= aspnetcore-10.0"
9+
* [!INCLUDE[](~/includes/10.0-SDK.md)]
10+
:::moniker-end
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### Improvements to Minimal APIs Validation
2+
3+
<!-- https://github.com/dotnet/aspnetcore/pull/61193 -->
4+
<!-- https://github.com/dotnet/aspnetcore/pull/61402 -->
5+
Beginning in Preview 4, ASP.NET Core supports validation on record types. With this enhancement,
6+
inputs to API endpoints defined using `record` types are now validated automatically, in the same way as
7+
class types.

0 commit comments

Comments
 (0)