Skip to content

Commit af02e2f

Browse files
authored
Temporarily use 8.0 framework (#34118)
1 parent a681ae8 commit af02e2f

File tree

1 file changed

+42
-2
lines changed
  • aspnetcore/blazor/tutorials/movie-database-app

1 file changed

+42
-2
lines changed

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

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,13 @@ In Visual Studio:
6363

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

66-
* **Framework**: Select **.NET 9.0 (Standard Term Support)**.
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)**.
6773
* **Authentication type**: **None**
6874
* **Configure for HTTPS**: Selected
6975
* **Interactive render mode**: **Server**
@@ -111,7 +117,19 @@ Create a new project:
111117

112118
* 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.
113119

114-
* Select **Create project** from the **Command Palette**.
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+
* Select **Create project** to create the app.
115133

116134
:::zone-end
117135

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

122140
In a command shell:
123141

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+
124162
* 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`).
125163
* 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.
126164

127165
```dotnetcli
128166
dotnet new blazor -o BlazorWebAppMovies
129167
```
130168

169+
:::moniker-end
170+
131171
:::zone-end
132172

133173
## Run the app

0 commit comments

Comments
 (0)