intro-to-dotnet-web-dev
intro-to-dotnet-web-dev copied to clipboard
Update to .NET 9
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.jsonto usemcr.microsoft.com/devcontainers/dotnet:9.0instead of8.0. - Updated the
.NET SDKversion in.github/workflows/dotnet.ymlto9.0.x. - Changed the
TargetFrameworkin multiple.csprojfiles across lessons 2 to 5 fromnet8.0tonet9.0.
Razor Pages Updates:
- Updated the link in
Index.cshtmlto point to the latest ASP.NET Core documentation (learn.microsoft.com). - Added a
<script type="importmap"></script>tag inPages/Shared/_Layout.cshtmlfor potential future JavaScript module usage. - Updated the copyright year in
Pages/Shared/_Layout.cshtmlfrom 2023 to 2025.
Minor Project File and Metadata Updates:
- Updated the Visual Studio version and project GUID in
RazorPagesPizza.sln. - Adjusted the order of
usingdirectives inError.cshtml.csfor better organization. - Removed unnecessary blank lines in
Error.cshtml.csandPrivacy.cshtml.cs. [1] [2]