Update to .NET 9#57
Open
jongalloway wants to merge 7 commits intomainfrom
Open
Conversation
There was a problem hiding this comment.
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
Member
|
@jongalloway is this good? feel free to merge :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.jsonto usemcr.microsoft.com/devcontainers/dotnet:9.0instead of8.0..NET SDKversion in.github/workflows/dotnet.ymlto9.0.x.TargetFrameworkin multiple.csprojfiles across lessons 2 to 5 fromnet8.0tonet9.0.Razor Pages Updates:
Index.cshtmlto point to the latest ASP.NET Core documentation (learn.microsoft.com).<script type="importmap"></script>tag inPages/Shared/_Layout.cshtmlfor potential future JavaScript module usage.Pages/Shared/_Layout.cshtmlfrom 2023 to 2025.Minor Project File and Metadata Updates:
RazorPagesPizza.sln.usingdirectives inError.cshtml.csfor better organization.Error.cshtml.csandPrivacy.cshtml.cs. [1] [2]