-
Notifications
You must be signed in to change notification settings - Fork 724
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
base: main
Are you sure you want to change the base?
Update to .NET 9 #57
Conversation
There was a problem hiding this 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 |
3-razor-pages/0-start/RazorPagesPizza/RazorPagesPizza/Pages/Shared/_Layout.cshtml
Show resolved
Hide resolved
…atibility and enhanced Swagger integration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@
@jongalloway is this good? feel free to merge :) |
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:
.devcontainer/devcontainer.json
to usemcr.microsoft.com/devcontainers/dotnet:9.0
instead of8.0
..NET SDK
version in.github/workflows/dotnet.yml
to9.0.x
.TargetFramework
in multiple.csproj
files across lessons 2 to 5 fromnet8.0
tonet9.0
.Razor Pages Updates:
Index.cshtml
to point to the latest ASP.NET Core documentation (learn.microsoft.com
).<script type="importmap"></script>
tag inPages/Shared/_Layout.cshtml
for potential future JavaScript module usage.Pages/Shared/_Layout.cshtml
from 2023 to 2025.Minor Project File and Metadata Updates:
RazorPagesPizza.sln
.using
directives inError.cshtml.cs
for better organization.Error.cshtml.cs
andPrivacy.cshtml.cs
. [1] [2]