intro-to-dotnet-web-dev icon indicating copy to clipboard operation
intro-to-dotnet-web-dev copied to clipboard

Update to .NET 9

Open jongalloway opened this issue 7 months ago • 1 comments

This pull request includes updates to migrate the project from .NET 8.0 to .NET 9.0, along with minor improvements to project files and Razor Pages. The most significant changes include updating the target framework, Docker image, and workflow configuration, as well as minor content and metadata updates.

Fixes #56

Migration to .NET 9.0:

  • Updated the dev container image in .devcontainer/devcontainer.json to use mcr.microsoft.com/devcontainers/dotnet:9.0 instead of 8.0.
  • Updated the .NET SDK version in .github/workflows/dotnet.yml to 9.0.x.
  • Changed the TargetFramework in multiple .csproj files across lessons 2 to 5 from net8.0 to net9.0.

Razor Pages Updates:

  • Updated the link in Index.cshtml to point to the latest ASP.NET Core documentation (learn.microsoft.com).
  • Added a <script type="importmap"></script> tag in Pages/Shared/_Layout.cshtml for potential future JavaScript module usage.
  • Updated the copyright year in Pages/Shared/_Layout.cshtml from 2023 to 2025.

Minor Project File and Metadata Updates:

  • Updated the Visual Studio version and project GUID in RazorPagesPizza.sln.
  • Adjusted the order of using directives in Error.cshtml.cs for better organization.
  • Removed unnecessary blank lines in Error.cshtml.cs and Privacy.cshtml.cs. [1] [2]

jongalloway avatar May 13 '25 04:05 jongalloway