From 995b1783c9983a5978a04dca4f6afd1f04ced6a9 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:30:19 -0500 Subject: [PATCH 1/2] Temporarily use 8.0 framework --- .../tutorials/movie-database-app/part-1.md | 44 ++++++++++++++++++- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/aspnetcore/blazor/tutorials/movie-database-app/part-1.md b/aspnetcore/blazor/tutorials/movie-database-app/part-1.md index 785cc3611872..f3abf57dd66e 100644 --- a/aspnetcore/blazor/tutorials/movie-database-app/part-1.md +++ b/aspnetcore/blazor/tutorials/movie-database-app/part-1.md @@ -63,7 +63,13 @@ In Visual Studio: * In the **Additional information** dialog, use the following settings: - * **Framework**: Select **.NET 9.0 (Standard Term Support)**. + + + > [!CAUTION] + > 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 or Visual Studio Code, but select the **.NET 8.0 (Long Term Support)** framework when creating the app in the following settings. + + * **Framework**: Select **.NET 8.0 (Long Term Support)**. * **Authentication type**: **None** * **Configure for HTTPS**: Selected * **Interactive render mode**: **Server** @@ -111,7 +117,19 @@ Create a new project: * 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. -* Select **Create project** from the **Command Palette**. +:::moniker range=">= aspnetcore-9.0" + + + +> [!CAUTION] +> 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 in the next step. + +* Select **Show all template options**. Select **Framework** followed by **.NET 8.0**. + +:::moniker-end + +* Select **Create project** to create the app. :::zone-end @@ -121,6 +139,26 @@ Confirm that you have the latest [.NET SDK](https://dotnet.microsoft.com/downloa In a command shell: +:::moniker range=">= aspnetcore-9.0" + +* 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`). +* 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. + + + + > [!CAUTION] + > 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. + + ```dotnetcli + dotnet new blazor -o BlazorWebAppMovies -f net8.0 + ``` + +:::moniker-end + +:::moniker range="< aspnetcore-9.0" + * 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`). * 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. @@ -128,6 +166,8 @@ In a command shell: dotnet new blazor -o BlazorWebAppMovies ``` +:::moniker-end + :::zone-end ## Run the app From 856745a076d7a262f564f6445effa40346398713 Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:32:57 -0500 Subject: [PATCH 2/2] Updates --- aspnetcore/blazor/tutorials/movie-database-app/part-1.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/blazor/tutorials/movie-database-app/part-1.md b/aspnetcore/blazor/tutorials/movie-database-app/part-1.md index f3abf57dd66e..3ff865d940eb 100644 --- a/aspnetcore/blazor/tutorials/movie-database-app/part-1.md +++ b/aspnetcore/blazor/tutorials/movie-database-app/part-1.md @@ -67,7 +67,7 @@ In Visual Studio: Convert this block back over to 9.0 Standard Term Support. --> > [!CAUTION] - > 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 or Visual Studio Code, but select the **.NET 8.0 (Long Term Support)** framework when creating the app in the following settings. + > 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. * **Framework**: Select **.NET 8.0 (Long Term Support)**. * **Authentication type**: **None** @@ -123,7 +123,7 @@ Create a new project: Remove this moniker range block to revert. --> > [!CAUTION] -> 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 in the next step. +> 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. * Select **Show all template options**. Select **Framework** followed by **.NET 8.0**.