Skip to content

Commit 23415e3

Browse files
authored
Merge pull request #34141 from dotnet/main
Merge to Live
2 parents 7133938 + 0a1058b commit 23415e3

File tree

4 files changed

+25
-47
lines changed

4 files changed

+25
-47
lines changed

aspnetcore/blazor/tutorials/movie-database-app/index.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ For Microsoft Azure services, we recommend using *managed identities*. Managed i
4747

4848
If you don't intend to create the demonstration app while reading the article, you can refer to the completed sample app in the [Blazor samples GitHub repository (`dotnet/blazor-samples`)](https://github.com/dotnet/blazor-samples). Select the latest version folder in the repository. The sample folder for this tutorial's project is named `BlazorWebAppMovies`.
4949

50-
<!-- UPDATE 9.0 Revert when the framework is patched. -->
51-
52-
> [!CAUTION]
53-
> A regression prevents the .NET 9.0 framework from working for this tutorial series at this time. When examining the code in the sample app or obtaining the sample app to run locally, use the .NET 8 version of the sample in the sample repository's `8.0` folder at this time.
54-
5550
## Article code examples
5651

5752
The line breaks of code examples shown in the ASP.NET Core documentation often don't match line breaks in scaffolded code generated by tooling for an app. This is due to an article publishing limitation. Lines of code in articles are generally limited to 85 characters in length, and we manually adjust the line length using line breaks to satisfy our publishing guidelines.

aspnetcore/blazor/tutorials/movie-database-app/part-1.md

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,7 @@ In Visual Studio:
6363

6464
* In the **Additional information** dialog, use the following settings:
6565

66-
<!-- UPDATE 9.0 Update after regression is resolved.
67-
Convert this block back over to 9.0 Standard Term Support. -->
68-
69-
> [!CAUTION]
70-
> A regression prevents the .NET 9.0 framework from working for this tutorial series at this time. You can use the 9.0 SDK and the latest version of Visual Studio, but select the **.NET 8.0 (Long Term Support)** framework when creating the app in the following settings.
71-
72-
* **Framework**: Select **.NET 8.0 (Long Term Support)**.
66+
* **Framework**: Select **.NET 9.0 (Standard Term Support)**.
7367
* **Authentication type**: **None**
7468
* **Configure for HTTPS**: Selected
7569
* **Interactive render mode**: **Server**
@@ -117,18 +111,6 @@ Create a new project:
117111

118112
* In the **Command Palette**, name the project `BlazorWebAppMovies`, including matching the capitalization. Using this exact project name is important to ensure that the namespaces match for code that you copy from the tutorial into the app that you're building.
119113

120-
:::moniker range=">= aspnetcore-9.0"
121-
122-
<!-- UPDATE 9.0 Update after regression is resolved.
123-
Remove this moniker range block to revert. -->
124-
125-
> [!CAUTION]
126-
> A regression prevents the .NET 9.0 framework from working for this tutorial series at this time. You can use the 9.0 SDK and the latest version of Visual Studio Code, but specify the **.NET 8.0 (Long Term Support)** framework in the next step when you create the app.
127-
128-
* Select **Show all template options**. Select **Framework** followed by **.NET 8.0**.
129-
130-
:::moniker-end
131-
132114
* Select **Create project** to create the app.
133115

134116
:::zone-end
@@ -139,35 +121,13 @@ Confirm that you have the latest [.NET SDK](https://dotnet.microsoft.com/downloa
139121

140122
In a command shell:
141123

142-
:::moniker range=">= aspnetcore-9.0"
143-
144-
* Use the `cd` command to change to the directory to where you want to create the project folder (for example, `cd c:/users/Bernie_Kopell/Documents`).
145-
* Use the [`dotnet new` command](/dotnet/core/tools/dotnet-new) with the [`blazor` project template](/dotnet/core/tools/dotnet-new-sdk-templates#blazor) to create a new Blazor Web App project. The [`-o|--output` option](/dotnet/core/tools/dotnet-new#options) passed to the command creates the project in a new folder at the current shell directory location. Name the project `BlazorWebAppMovies`, including matching the capitalization, so the namespaces match for code that you copy from the tutorial to the app.
146-
147-
<!-- UPDATE 9.0 Update after regression is resolved.
148-
Remove the 9.0 moniker block, leaving the <9.0
149-
content in place. -->
150-
151-
> [!CAUTION]
152-
> A regression prevents the .NET 9.0 framework from working for this tutorial series at this time. You can use the 9.0 SDK, but specify the **.NET 8.0 (Long Term Support)** framework by passing `net8.0` to the framework option (`-f|--framework`) of the `dotnet new` command when creating the app.
153-
154-
```dotnetcli
155-
dotnet new blazor -o BlazorWebAppMovies -f net8.0
156-
```
157-
158-
:::moniker-end
159-
160-
:::moniker range="< aspnetcore-9.0"
161-
162124
* Use the `cd` command to change to the directory to where you want to create the project folder (for example, `cd c:/users/Bernie_Kopell/Documents`).
163125
* Use the [`dotnet new` command](/dotnet/core/tools/dotnet-new) with the [`blazor` project template](/dotnet/core/tools/dotnet-new-sdk-templates#blazor) to create a new Blazor Web App project. The [`-o|--output` option](/dotnet/core/tools/dotnet-new#options) passed to the command creates the project in a new folder at the current shell directory location. Name the project `BlazorWebAppMovies`, including matching the capitalization, so the namespaces match for code that you copy from the tutorial to the app.
164126

165127
```dotnetcli
166128
dotnet new blazor -o BlazorWebAppMovies
167129
```
168130

169-
:::moniker-end
170-
171131
:::zone-end
172132

173133
## Run the app

aspnetcore/blazor/tutorials/movie-database-app/part-2.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,30 @@ Add a movie to the database. In the following example, the classic sci-fi movie
409409

410410
![Adding The Matrix movie to the database with the 'Create' component](~/blazor/tutorials/movie-database-app/part-2/_static/create-new.png)
411411

412-
When you select the **:::no-loc text="Create":::** button, the movie data is posted to the server and saved in the database. When the app returns to the `Index` page, the added entity appears:
412+
When you select the **:::no-loc text="Create":::** button, the movie data is posted to the server and saved in the database.
413+
414+
:::moniker range=">= aspnetcore-9.0"
415+
416+
<!-- UPDATE 9.0 Revert when debugger is updated -->
417+
418+
:::zone pivot="vs"
419+
420+
A Visual Studio debugger regression breaks with a <xref:Microsoft.AspNetCore.Components.NavigationException> on the line that navigates back to the `Index` page:
421+
422+
![Debugger regression: A navigation exception is thrown on the NavigateTo call.](~/blazor/tutorials/movie-database-app/part-2/_static/debugger_regression.png)
423+
424+
To resolve this problem until the debugger is updated by a future Visual Studio release:
425+
426+
1. Deselect the checkbox for **Break when this exception type is user-handled**.
427+
2. Select the **Continue** button in the menu bar to continue execution.
428+
429+
The exception won't be thrown when the <xref:Microsoft.AspNetCore.Components.NavigationManager.NavigateTo%2A> method is executed throughout the rest of the tutorial series.
430+
431+
:::zone-end
432+
433+
:::moniker-end
434+
435+
When the app returns to the `Index` page, the added entity appears:
413436

414437
![The Matrix movie shown in the movies 'Index' page](~/blazor/tutorials/movie-database-app/part-2/_static/movie-added.png)
415438

58.5 KB
Loading

0 commit comments

Comments
 (0)