Skip to content

Commit 0187f63

Browse files
authored
Hosted Blazor WebAssembly and other updates (#35227)
1 parent 2b2dfb6 commit 0187f63

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed

Diff for: aspnetcore/blazor/hosting-models.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,18 @@ The Blazor WebAssembly hosting model runs components client-side in the browser
8787

8888
:::moniker range=">= aspnetcore-8.0"
8989

90-
Blazor web apps can use the Blazor WebAssembly hosting model to enable client-side interactivity. When an app is created that exclusively runs on the Blazor WebAssembly hosting model without server-side rendering and interactivity, the app is called a *standalone* Blazor WebAssembly app.
90+
Blazor Web Apps can use the Blazor WebAssembly hosting model to enable client-side interactivity. When an app is created that exclusively runs on the Blazor WebAssembly hosting model without server-side rendering and interactivity, the app is called a *standalone* Blazor WebAssembly app.
9191

9292
:::moniker-end
9393

9494
:::moniker range="< aspnetcore-8.0"
9595

9696
When the Blazor WebAssembly app is created for deployment without a backend ASP.NET Core app to serve its files, the app is called a *standalone* Blazor WebAssembly app.
9797

98-
:::moniker-end
99-
10098
When a standalone Blazor WebAssembly app uses a backend ASP.NET Core app to serve its files, the app is called a *hosted* Blazor WebAssembly app. Using hosted Blazor WebAssembly, you get a full-stack web development experience with .NET, including the ability to share code between the client and server apps, support for prerendering, and integration with MVC and Razor Pages. A hosted client app can interact with its backend server app over the network using a variety of messaging frameworks and protocols, such as [web API](xref:web-api/index), [gRPC-web](xref:grpc/index), and [SignalR](xref:signalr/introduction) (<xref:blazor/tutorials/signalr-blazor>).
10199

100+
:::moniker-end
101+
102102
:::moniker range=">= aspnetcore-6.0"
103103

104104
A Blazor WebAssembly app built as a [Progressive Web App (PWA)](xref:blazor/progressive-web-app) uses modern browser APIs to enable many of the capabilities of a native client app, such as working offline, running in its own app window, launching from the host's operating system, receiving push notifications, and automatically updating in the background.
@@ -420,7 +420,7 @@ Blazor Hybrid apps have full access to native client API capabilities via .NET n
420420

421421
### Web-based deployment
422422

423-
Blazor web apps are updated on the next app refresh from the browser.
423+
Blazor Web Apps are updated on the next app refresh from the browser.
424424

425425
:::moniker range=">= aspnetcore-6.0"
426426

Diff for: aspnetcore/blazor/hybrid/security/security-considerations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ iOS and :::no-loc text="Mac Catalyst"::: both use [`WKWebView`](https://develope
8888

8989
### Windows (.NET MAUI, WPF, Windows Forms)
9090

91-
On Windows, the Chromium-based [Microsoft Edge `WebView2`](/microsoft-edge/webview2/) is required to run Blazor web apps.
91+
On Windows, the Chromium-based [Microsoft Edge `WebView2`](/microsoft-edge/webview2/) is required to run Blazor Web Apps.
9292

9393
The newest installed version of `WebView2`, known as the *:::no-loc text="Evergreen distribution":::*, is used. If you wish to ship a specific version of `WebView2` with the app, use the *:::no-loc text="Fixed Version distribution":::*.
9494

Diff for: aspnetcore/blazor/tooling.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ To create a Blazor app with Visual Studio, use the following guidance:
3131

3232
* Create a new project using one of the available Blazor templates:
3333

34-
* **Blazor Web App**: Creates a Blazor web app that supports interactive server-side rendering (interactive SSR) and client-side rendering (CSR). The Blazor Web App template is recommended for getting started with Blazor to learn about server-side and client-side Blazor features.
34+
* **Blazor Web App**: Creates an app that supports interactive server-side rendering (interactive SSR) and client-side rendering (CSR). The Blazor Web App template is recommended for getting started with Blazor to learn about server-side and client-side Blazor features.
3535
* **Blazor WebAssembly Standalone App**: Creates a standalone client web app that can be deployed as a static site.
3636

3737
Select **Next**.
@@ -62,13 +62,6 @@ Select **Next**.
6262

6363
* For more information on the options in the **Additional information** dialog, see the [Blazor project templates and template options](#blazor-project-templates-and-template-options) section.
6464

65-
:::moniker range=">= aspnetcore-8.0"
66-
67-
> [!NOTE]
68-
> The Hosted Blazor WebAssembly project template isn't available in ASP.NET Core 8.0 or later. To create a hosted Blazor WebAssembly app, a **Framework** option earlier than .NET 8.0 must be selected with the **ASP.NET Core Hosted** checkbox.
69-
70-
:::moniker-end
71-
7265
:::moniker range="< aspnetcore-8.0"
7366

7467
* For a *hosted* Blazor WebAssembly app, select the **ASP.NET Core Hosted** checkbox in the **Additional information** dialog.
@@ -508,6 +501,14 @@ The Blazor framework provides project templates for creating new apps. The templ
508501
* Blazor Web App project template: `blazor`
509502
* Standalone Blazor WebAssembly app project template: `blazorwasm`
510503

504+
> [!NOTE]
505+
> The "Hosted" Blazor WebAssembly project template option isn't available in ASP.NET Core 8.0 or later. To create a hosted Blazor WebAssembly app, a **Framework** option earlier than .NET 8.0 must be selected with the **ASP.NET Core Hosted** checkbox. However, we recommend a Blazor Web App for all new Blazor development in .NET 8 or later. For more information, see the following resources:
506+
>
507+
> * <xref:blazor/index#build-a-full-stack-web-app-with-blazor>
508+
> * <xref:aspnetcore-8#new-blazor-web-app-template>
509+
> * <xref:blazor/project-structure#blazor-web-app>
510+
> * <xref:migration/70-to-80#convert-a-hosted-blazor-webassembly-app-into-a-blazor-web-app>
511+
511512
:::moniker-end
512513

513514
:::moniker range=">= aspnetcore-7.0 < aspnetcore-8.0"

Diff for: aspnetcore/fundamentals/openapi/openapi-comments.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ uid: fundamentals/openapi/aspnet-openapi-xml
1313

1414
ASP.NET Core XML documentation processing extracts code comments automatically to populate API documentation, ensuring the code and documentation remain synchronized. Metadata from XML documentation comments is included in the generated OpenAPI document without requiring changes to the app code, as long as the project is configured to generate the XML documentation file. XML documentation comments are automatically detected in the application assembly and referenced assemblies with XML documentation enabled.
1515

16-
ASP.NET Core processes [XML documentation tags](https://learn.microsoft.com/dotnet/csharp/language-reference/xmldoc/recommended-tags) like: `<c>`, `<code>`, `<list>`, `<para>`, `<paramref>`, `<typeparamref>`, `<see>`, and `<seealso>`. For XML documentation tags that use references to other elements, like `<see cref="SomeOtherType">`, the implementation strips out the XML tag and maps the reference to plain text for inclusion in the OpenAPI document.
16+
ASP.NET Core processes [XML documentation tags](/dotnet/csharp/language-reference/xmldoc/recommended-tags) like: `<c>`, `<code>`, `<list>`, `<para>`, `<paramref>`, `<typeparamref>`, `<see>`, and `<seealso>`. For XML documentation tags that use references to other elements, like `<see cref="SomeOtherType">`, the implementation strips out the XML tag and maps the reference to plain text for inclusion in the OpenAPI document.
1717

1818
ASP.NET Core XML documentation processing doesn't affect runtime performance. The source generator processes XML documentation at compile time and caches the results, with minimal runtime overhead when rendering the OpenAPI documentation. Furthermore, the OpenAPI document can be cached at runtime using [output-caching](/aspnet/core/performance/caching/overview#output-caching) to further optimize performance.
1919

Diff for: aspnetcore/release-notes/aspnetcore-8.0.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ For more information, see <xref:migration/70-to-80#drop-blazor-server-with-yarp-
324324

325325
<!-- UPDATE 10.0 Confirm or update -->
326326

327-
Support for multiple Blazor Web Apps per server project will be considered for .NET 10 (November, 2025).
327+
Support for multiple Blazor Web Apps per server project will be considered for a future .NET release.
328328

329329
For more information, see [Support for multiple Blazor Web apps per server project (`dotnet/aspnetcore` #52216)](https://github.com/dotnet/aspnetcore/issues/52216).
330330

0 commit comments

Comments
 (0)