Upgrades target framework to .NET 10 and updates packages#32
Merged
Upgrades target framework to .NET 10 and updates packages#32
Conversation
Updates analyzer and package dependencies to the latest versions. This change ensures the project benefits from the newest features, bug fixes, and performance improvements offered by these dependencies.
Enables central package transitive pinning and floating versions to allow more control over dependency versions. Adds specific version constraints for Azure.Identity, Microsoft.IdentityModel.JsonWebTokens, System.IdentityModel.Tokens.Jwt, System.Drawing.Common, and System.Formats.Asn1 to address potential vulnerabilities or compatibility issues.
Updates the target framework for all projects to .net10.0. Adds `Microsoft.Extensions.Options.DataAnnotations` package for validation. Disables some code analysis warnings in `.editorconfig`. Updates package versions in `Directory.Packages.props`.
Updates the .NET SDK version used in the testing workflow from 9.0 to 10.0. This ensures that the tests are run against the latest .NET SDK version, providing better compatibility and identifying potential issues early on.
There was a problem hiding this comment.
Pull Request Overview
This PR upgrades the entire solution from .NET 9.0 to .NET 10.0, updates all package dependencies to their latest versions (including several pre-release versions), and enables central package transitive pinning to improve build reproducibility.
Key Changes
- Upgrades all projects from
net9.0tonet10.0target framework - Updates analyzer packages (Roslynator, SonarAnalyzer, Meziantou.Analyzer, etc.) and core dependencies (Entity Framework Core, Microsoft.Extensions packages) to latest versions
- Enables central package transitive pinning and adds wildcard version constraints for transitive dependencies to address known vulnerabilities
Reviewed Changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| Directory.Packages.props | Updates all package versions to .NET 10 compatible versions, enables transitive pinning with floating versions, adds transitive package constraints for vulnerability fixes |
| Directory.Build.props | Updates AnalysisLevel to 10-all, adds NU1903 warning suppression for known vulnerabilities |
| DiplomaticMailBot.Cli/DiplomaticMailBot.Cli.csproj | Updates target framework to net10.0, adds Microsoft.Extensions.Options.DataAnnotations package reference |
| DiplomaticMailBot.Infra.Telegram.Implementations/DiplomaticMailBot.Infra.Telegram.Implementations.csproj | Updates target framework to net10.0, adds Microsoft.Extensions.Logging.Abstractions package reference |
| All other .csproj files | Updates target framework from net9.0 to net10.0 |
| .editorconfig | Adds suppressions for CA1873 (logging performance) and MA0015 (parameter matching) diagnostics |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Updates the target framework for all projects to .NET 10.0.
Also updates package versions, including analyzers and dependencies, to their latest versions.
Enables central package transitive pinning.