Upgrade to .NET 9, apply modern C# features, and fix CI/CD deprecation warnings #42
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 PR upgrades the project from .NET 7.0 to .NET 9 and applies modern C# features and best practices. The upgrade addresses end-of-life warnings for .NET 7.0 and takes advantage of the latest performance improvements and language features. Additionally, it fixes critical CI/CD pipeline failures caused by deprecated GitHub Actions.
Key Changes
Framework Upgrades
Package Updates
All NuGet packages updated to their latest compatible versions:
Microsoft.AspNetCore.Components.WebAssembly
→ 9.0.0Azure.Storage.Blobs
→ 12.23.0Microsoft.Azure.Functions.Worker
→ 2.0.0Microsoft.Extensions.Azure
→ 1.10.0Modern C# Features Applied
new()
with[]
syntax for cleaner, more performant coderequired
keyword for better compile-time checksCI/CD Pipeline Fixes
actions/upload-artifact@v3
toactions/upload-artifact@v4
actions/checkout@v2
toactions/checkout@v4
Build System Improvements
sass
commandCode Quality Enhancements
Before:
After:
Testing
The project now leverages the latest .NET 9 capabilities while maintaining full backward compatibility, improved performance, and a reliable deployment pipeline.
Fixes #41.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.