Skip to content

Update to .NET 9 #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Update to .NET 9 #57

wants to merge 7 commits into from

Conversation

jongalloway
Copy link
Contributor

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]

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the project from .NET 8.0 to .NET 9.0 while making minor improvements to project files and Razor Pages.

  • Update target framework versions in multiple .csproj files
  • Change the Docker image and .NET SDK version in the dev container and workflow configuration
  • Update Razor Pages content including a new importmap tag and corrected links and metadata

Reviewed Changes

Copilot reviewed 183 out of 183 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Pages/Shared/_Layout.cshtml Added an empty importmap script tag and updated the copyright
Pages/Privacy.cshtml.cs Removed an unnecessary blank line
Pages/Index.cshtml.cs Cleaned up the using directive
Pages/Index.cshtml Updated the ASP.NET Core documentation link
Pages/Error.cshtml.cs Reordered and adjusted using directives for better clarity
RazorPagesPizza.sln Updated Visual Studio version info and project GUID
Various .csproj files Updated TargetFramework from net8.0 to net9.0
.github/workflows/dotnet.yml Updated the .NET SDK version to 9.0.x
.devcontainer/devcontainer.json Updated the Docker image version to dotnet:9.0

…atibility and enhanced Swagger integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

update to .NET 9
1 participant