diff --git a/aspnetcore/blazor/components/integration.md b/aspnetcore/blazor/components/integration.md index b6e6bfd6b3e4..8da12d79a4b4 100644 --- a/aspnetcore/blazor/components/integration.md +++ b/aspnetcore/blazor/components/integration.md @@ -16,15 +16,216 @@ uid: blazor/components/integration --> -This article explains Razor component integration scenarios for ASP.NET Core apps, including prerendering of Razor components on the server. +This article explains Razor component integration scenarios for ASP.NET Core apps. -Razor components can be integrated into Razor Pages and MVC apps. When the page or view is rendered, components can be prerendered at the same time. Prerendering can improve [Search Engine Optimization (SEO)](https://developer.mozilla.org/docs/Glossary/SEO) by rendering content for the initial HTTP response that search engines can use to calculate page rank. +Razor components can be integrated into Razor Pages, MVC, and other types of ASP.NET Core apps. Razor components can also be integrated into any web app, including apps not based on ASP.NET Core, as [custom HTML elements](xref:blazor/components/js-spa-frameworks#blazor-custom-elements). Use the guidance in the following sections depending on the project's requirements: + * For interactive components that aren't directly routable from user requests, see the [Use non-routable components in pages or views](#use-non-routable-components-in-pages-or-views) section. Follow this guidance when the app embeds components into existing pages and views with the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper). * For interactive components that are directly routable from user requests, see the [Use routable components](#use-routable-components) section. Follow this guidance when visitors should be able to make an HTTP request in their browser for a component with an [`@page`](xref:mvc/views/razor#page) directive. + + ## Use non-routable components in pages or views Use the following guidance to integrate Razor components into pages and views of an existing Razor Pages or MVC app with the [Component Tag Helper](xref:mvc/views/tag-helpers/builtin-th/component-tag-helper). diff --git a/aspnetcore/migration/70-80.md b/aspnetcore/migration/70-80.md index f2573c5c3698..c67f885aec3e 100644 --- a/aspnetcore/migration/70-80.md +++ b/aspnetcore/migration/70-80.md @@ -26,9 +26,9 @@ This article explains how to update an existing ASP.NET Core 7.0 project to ASP. --- -## Update .NET Core SDK version in global.json +## Update the .NET SDK version in `global.json` -If you rely on a [global.json](/dotnet/core/tools/global-json) file to target a specific .NET Core SDK version, update the `version` property to the .NET 8.0 SDK version that's installed. For example: +If you rely on a [`global.json`](/dotnet/core/tools/global-json) file to target a specific .NET Core SDK version, update the `version` property to the .NET 8.0 SDK version that's installed. For example: ```diff { @@ -56,7 +56,7 @@ Update the project file's [Target Framework Moniker (TFM)](/dotnet/standard/fram ## Update package references -In the project file, update each [Microsoft.AspNetCore.*](https://www.nuget.org/packages?q=Microsoft.AspNetCore.*), [Microsoft.EntityFrameworkCore.*](https://www.nuget.org/packages?q=Microsoft.EntityFrameworkCore.*), [Microsoft.Extensions.*](https://www.nuget.org/packages?q=Microsoft.Extensions.*), and [System.Net.Http.Json](https://www.nuget.org/packages/System.Net.Http.Json) package reference's `Version` attribute to 8.00 or later. For example: +In the project file, update each [`Microsoft.AspNetCore.*`](https://www.nuget.org/packages?q=Microsoft.AspNetCore.*), [`Microsoft.EntityFrameworkCore.*`](https://www.nuget.org/packages?q=Microsoft.EntityFrameworkCore.*), [`Microsoft.Extensions.*`](https://www.nuget.org/packages?q=Microsoft.Extensions.*), and [`System.Net.Http.Json`](https://www.nuget.org/packages/System.Net.Http.Json) package reference's `Version` attribute to 8.00 or later. For example: ```diff @@ -73,64 +73,301 @@ In the project file, update each [Microsoft.AspNetCore.*](https://www.nuget.org/ ## Blazor -We hope to have the Blazor section of this article updated soon. + -### Adopt .NET 8 features +The following migration scenarios are covered: -After following the guidance earlier in this article to update an app to 8.0, adopt specific features by following the links in . +* [Adopt Blazor Web App conventions](#adopt-blazor-web-app-conventions) +* [Convert a Blazor Server app into a Blazor Web App](#convert-a-blazor-server-app-into-a-blazor-web-app) +* [Convert a hosted Blazor WebAssembly app into a Blazor Web App](#convert-a-hosted-blazor-webassembly-app-into-a-blazor-web-app) - +To optionally adopt all of the new Blazor Web App conventions, we recommend the following process: - + For Visual Studio, confirm that the `Server` project is selected in **Solution Explorer** when running the app. + + If using the .NET CLI, run the project from the `Server` project's folder. ## Update Docker images diff --git a/aspnetcore/release-notes/aspnetcore-8.0.md b/aspnetcore/release-notes/aspnetcore-8.0.md index 8de1edc69330..8b03dc2e32dc 100644 --- a/aspnetcore/release-notes/aspnetcore-8.0.md +++ b/aspnetcore/release-notes/aspnetcore-8.0.md @@ -22,8 +22,8 @@ This article is under development and not complete. More information may be foun * [What's new in .NET 8 Preview 6](https://devblogs.microsoft.com/dotnet/asp-net-core-updates-in-dotnet-8-preview-6/) * [What's new in .NET 8 Preview 7](https://devblogs.microsoft.com/dotnet/asp-net-core-updates-in-dotnet-8-preview-7/) * [What's new in .NET 8 Release Candidate 1](https://devblogs.microsoft.com/dotnet/asp-net-core-updates-in-dotnet-8-rc-1/) -