You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/blazor/tutorials/movie-database-app/index.md
-5Lines changed: 0 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,11 +47,6 @@ For Microsoft Azure services, we recommend using *managed identities*. Managed i
47
47
48
48
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`.
49
49
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
-
55
50
## Article code examples
56
51
57
52
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.
Copy file name to clipboardExpand all lines: aspnetcore/blazor/tutorials/movie-database-app/part-1.md
+1-41Lines changed: 1 addition & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,13 +63,7 @@ In Visual Studio:
63
63
64
64
* In the **Additional information** dialog, use the following settings:
65
65
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)**.
73
67
***Authentication type**: **None**
74
68
***Configure for HTTPS**: Selected
75
69
***Interactive render mode**: **Server**
@@ -117,18 +111,6 @@ Create a new project:
117
111
118
112
* 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.
119
113
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
-
132
114
* Select **Create project** to create the app.
133
115
134
116
:::zone-end
@@ -139,35 +121,13 @@ Confirm that you have the latest [.NET SDK](https://dotnet.microsoft.com/downloa
139
121
140
122
In a command shell:
141
123
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
-
162
124
* 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`).
163
125
* 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.
Copy file name to clipboardExpand all lines: aspnetcore/blazor/tutorials/movie-database-app/part-2.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -409,7 +409,30 @@ Add a movie to the database. In the following example, the classic sci-fi movie
409
409
410
410

411
411
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 temporary Visual Studio debugger regression breaks with a <xref:Microsoft.AspNetCore.Components.NavigationException> on the line that navigates back to the `Index` page:
421
+
422
+

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:
413
436
414
437

0 commit comments