Skip to content

Commit 0d1ec5b

Browse files
authored
[10.0] Migration guidance updates (#36317)
1 parent 8a9f7fb commit 0d1ec5b

File tree

10 files changed

+74
-7
lines changed

10 files changed

+74
-7
lines changed

.openpublishing.redirection.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,10 +1649,30 @@
16491649
"redirect_url": "/aspnet/core/fundamentals/error-handling-api",
16501650
"redirect_document_id": false
16511651
},
1652-
{
1652+
{
16531653
"source_path": "aspnetcore/fundamentals/map-static-files.md",
16541654
"redirect_url": "/aspnet/core/fundamentals/static-files",
16551655
"redirect_document_id": false
1656+
},
1657+
{
1658+
"source_path": "aspnetcore/migration/60-70.md",
1659+
"redirect_url": "/aspnet/core/migration/60-to-70",
1660+
"redirect_document_id": false
1661+
},
1662+
{
1663+
"source_path": "aspnetcore/migration/70-80.md",
1664+
"redirect_url": "/aspnet/core/migration/70-to-80",
1665+
"redirect_document_id": false
1666+
},
1667+
{
1668+
"source_path": "aspnetcore/migration/80-90.md",
1669+
"redirect_url": "/aspnet/core/migration/80-to-90",
1670+
"redirect_document_id": false
1671+
},
1672+
{
1673+
"source_path": "aspnetcore/migration/20_21.md",
1674+
"redirect_url": "/aspnet/core/migration/20-to-21",
1675+
"redirect_document_id": false
16561676
}
16571677
]
16581678
}

aspnetcore/migration/20_21.md renamed to aspnetcore/migration/20-to-21.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: This article covers the basics of migrating an ASP.NET Core 2.0 app
55
ms.author: wpickett
66
ms.custom: mvc
77
ms.date: 06/09/2019
8-
uid: migration/20_21
8+
uid: migration/20-to-21
99
---
1010
# Migrate from ASP.NET Core 2.0 to 2.1
1111

File renamed without changes.
File renamed without changes.
File renamed without changes.

aspnetcore/migration/90-to-100.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Migrate from ASP.NET Core in .NET 9 to ASP.NET Core in .NET 10
33
author: wadepickett
44
description: Learn how to migrate an ASP.NET Core in .NET 9 to ASP.NET Core in .NET 10.
55
ms.author: wpickett
6-
ms.date: 8/14/2025
6+
ms.date: 11/10/2025
77
uid: migration/90-to-100
88
---
99
# Migrate from ASP.NET Core in .NET 9 to ASP.NET Core in .NET 10

aspnetcore/migration/90-to-100/includes/blazor.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,48 @@
1-
Complete migration coverage for Blazor apps is scheduled for September and October of 2025.
1+
### Blazor release notes
2+
3+
For new feature coverage, see <xref:aspnetcore-10>.
4+
5+
### Set the Blazor WebAssembly environment with the `WasmApplicationEnvironmentName` MSBuild property
6+
7+
*This section only applies to standalone Blazor WebAssembly apps.*
8+
9+
The `Properties/launchSettings.json` file is no longer used to control the environment in standalone Blazor WebAssembly apps.
10+
11+
Set the environment with the `<WasmApplicationEnvironmentName>` property in the app's project file (`.csproj`).
12+
13+
The following example sets the app's environment to `Staging`:
14+
15+
```xml
16+
<WasmApplicationEnvironmentName>Staging</WasmApplicationEnvironmentName>
17+
```
18+
19+
The default environments are:
20+
21+
* `Development` for build.
22+
* `Production` for publish.
23+
24+
### Boot configuration file inlined
25+
26+
Blazor's boot configuration, which prior to the release of .NET 10 existed in a file named `blazor.boot.json`, has been inlined into the `dotnet.js` script. This only affects developers who are interacting directly with the `blazor.boot.json` file, such as when developers are:
27+
28+
* Checking file integrity for published assets with the troubleshoot integrity PowerShell script per the guidance in <xref:blazor/host-and-deploy/webassembly/bundle-caching-and-integrity-check-failures?view=aspnetcore-9.0#troubleshoot-integrity-powershell-script>.
29+
* Changing the file name extension of DLL files when not using the default Webcil file format per the guidance in <xref:blazor/host-and-deploy/webassembly/index?view=aspnetcore-9.0#customize-how-boot-resources-are-loaded>.
30+
31+
Currently, there's no documented replacement strategy for the preceding approaches. If you require either of the preceding strategies, open a new documentation issue describing your scenario using the **Open a documentation issue** link at the bottom of either article.
32+
33+
### Declarative model for persisting state from components and services
34+
35+
In prior Blazor releases, persisting component state during prerendering using the <xref:Microsoft.AspNetCore.Components.PersistentComponentState> service involved a significant amount of code. Starting with .NET 10, you can declaratively specify state to persist from components and services using the `[PersistentState]` attribute. For more information, see <xref:aspnetcore-10#declarative-model-for-persisting-state-from-components-and-services>.
36+
37+
### Custom Blazor cache and `BlazorCacheBootResources` MSBuild property removed
38+
39+
Now that all Blazor client-side files are fingerprinted and cached by the browser, Blazor's custom caching mechanism and the `BlazorCacheBootResources` MSBuild property are no longer available. If the client-side project's project file contains the MSBuild property, remove the property, as it no longer has any effect:
40+
41+
```diff
42+
- <BlazorCacheBootResources>...</BlazorCacheBootResources>
43+
```
44+
45+
For more information, see <xref:blazor/host-and-deploy/webassembly/bundle-caching-and-integrity-check-failures?view=aspnetcore-10.0>.
246

347
### Adopt passkey user authentication in an existing Blazor Web App
448

aspnetcore/release-notes/aspnetcore-2.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ For more information, see <xref:mvc/compatibility-version>.
166166

167167
## Migrate from 2.0 to 2.1
168168

169-
See [Migrate from ASP.NET Core 2.0 to 2.1](xref:migration/20_21).
169+
See [Migrate from ASP.NET Core 2.0 to 2.1](xref:migration/20-to-21).
170170

171171
## Breaking changes
172172

aspnetcore/security/authentication/scaffold-identity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,6 @@ To prevent publishing static Identity assets to the web root, see <xref:security
952952

953953
## Additional resources
954954

955-
[Changes to authentication code to ASP.NET Core 2.1 or later](xref:migration/20_21#changes-to-authentication-code)
955+
[Changes to authentication code to ASP.NET Core 2.1 or later](xref:migration/20-to-21#changes-to-authentication-code)
956956

957957
:::moniker-end

aspnetcore/toc.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2084,6 +2084,9 @@ items:
20842084
uid: migration/index
20852085
- name: Version updates
20862086
items:
2087+
- name: 9 to 10
2088+
displayName: migrate, migration
2089+
uid: migration/90-to-100
20872090
- name: 8 to 9
20882091
displayName: migrate, migration
20892092
uid: migration/80-to-90
@@ -2121,7 +2124,7 @@ items:
21212124
uid: migration/logging-nonaspnetcore
21222125
- name: 2.0 to 2.1
21232126
displayName: migrate, migration
2124-
uid: migration/20_21
2127+
uid: migration/20-to-21
21252128
- name: 1.x to 2.0
21262129
displayName: migrate, migration
21272130
items:

0 commit comments

Comments
 (0)