-
Couldn't load subscription status.
- Fork 723
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.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]