Skip to content

Add .NET 10 target framework#393

Merged
VMelnalksnis merged 1 commit intomasterfrom
target-framework
Mar 29, 2026
Merged

Add .NET 10 target framework#393
VMelnalksnis merged 1 commit intomasterfrom
target-framework

Conversation

@VMelnalksnis
Copy link
Copy Markdown
Owner

No description provided.

@VMelnalksnis VMelnalksnis added enhancement New feature or request dependencies Pull requests that update a dependency file .NET Pull requests that update .net code labels Mar 29, 2026
@VMelnalksnis VMelnalksnis requested a review from Copilot March 29, 2026 06:57
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 29, 2026

Codecov Report

❌ Patch coverage is 19.44444% with 58 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.98%. Comparing base (3ccebc1) to head (dee35c7).
⚠️ Report is 2 commits behind head on master.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...is.PaperlessDotNet/Filters/ExpressionExtensions.cs 17.64% 47 Missing and 9 partials ⚠️
...DependencyInjection/ServiceCollectionExtensions.cs 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #393      +/-   ##
==========================================
- Coverage   81.69%   76.98%   -4.71%     
==========================================
  Files          46       46              
  Lines         792      830      +38     
  Branches       87      109      +22     
==========================================
- Hits          647      639       -8     
- Misses        113      151      +38     
- Partials       32       40       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown

Copilot AI left a 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 updates the solution to target .NET 10, aligning build/test infrastructure and a few runtime components with the new framework/tooling.

Changes:

  • Add net10.0 to multi-targeting and update global.json to .NET SDK 10.0.201.
  • Update central package versions to the .NET 10 (10.0.x) ecosystem and refresh test/dependency packages.
  • Adjust filtering expression evaluation/tests and switch DI options validation to a source-generated options validator.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/VMelnalksnis.PaperlessDotNet.Tests/Filters/FilterExpressionTestCases.cs Updates filter expression test cases to prefer LINQ Enumerable paths (via AsEnumerable()).
tests/VMelnalksnis.PaperlessDotNet.Tests.Integration/VMelnalksnis.PaperlessDotNet.Tests.Integration.csproj Makes System.Linq.Async conditional to avoid referencing it for net10.0.
tests/Directory.Build.props Updates test TFMs to net8.0;net9.0;net10.0 and removes now-unneeded package refs.
source/VMelnalksnis.PaperlessDotNet/Filters/ExpressionExtensions.cs Refactors expression evaluation and adds trimming/implicit-use annotations on generic parameters.
source/VMelnalksnis.PaperlessDotNet/Documents/DocumentFilter.cs Removes trimming/implicit-use annotations from DocumentFilter (now handled in expression helper).
source/VMelnalksnis.PaperlessDotNet.DependencyInjection/ServiceCollectionExtensions.cs Replaces ValidateDataAnnotations() with registration of a source-generated options validator.
source/VMelnalksnis.PaperlessDotNet.DependencyInjection/PaperlessOptionsValidator.cs Adds [OptionsValidator]-based validator for PaperlessOptions.
global.json Bumps the pinned SDK to 10.0.201.
README.md Fixes documentation links to moved/actual file locations.
Directory.Packages.props Updates central package versions for .NET 10 and related dependencies.
Directory.Build.props Adds net10.0 to solution-wide TargetFrameworks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cocogitto-bot
Copy link
Copy Markdown

cocogitto-bot bot commented Mar 29, 2026

✔️ dee35c7 - Conventional commits check succeeded.

@VMelnalksnis VMelnalksnis merged commit dee35c7 into master Mar 29, 2026
4 of 6 checks passed
@VMelnalksnis VMelnalksnis deleted the target-framework branch March 29, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file enhancement New feature or request .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants