From f9a99fe23af212b826eb88349f3ef96796c5abc7 Mon Sep 17 00:00:00 2001 From: Ilia Burakov Date: Fri, 14 Nov 2025 01:35:27 -0500 Subject: [PATCH 1/4] Updates analyzer and package versions 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. --- Directory.Packages.props | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index f84023f..4e82a6a 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -7,21 +7,21 @@ - + all runtime; build; native; contentfiles; analyzers - + all runtime; build; native; contentfiles; analyzers - + - + all runtime; build; native; contentfiles; analyzers - + all runtime; build; native; contentfiles; analyzers @@ -36,32 +36,32 @@ - + - - - - - - + + + + + + - + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - - - + + + - \ No newline at end of file + From 4baa47449a87a940f688e8f7e8be2ef2a5ba1318 Mon Sep 17 00:00:00 2001 From: Ilia Burakov Date: Fri, 14 Nov 2025 01:41:50 -0500 Subject: [PATCH 2/4] Enables transitive pinning and floating versions 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. --- Directory.Packages.props | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 4e82a6a..c6baa23 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -1,7 +1,8 @@ true - false + true + true @@ -63,5 +64,11 @@ + + + + + + From be1f0f0e7d0f441e4946f9697747bf503f11827c Mon Sep 17 00:00:00 2001 From: Ilia Burakov Date: Fri, 14 Nov 2025 02:06:42 -0500 Subject: [PATCH 3/4] Updates target framework to net10.0 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`. --- .editorconfig | 7 +++++++ DiplomaticMailBot.Cli/DiplomaticMailBot.Cli.csproj | 3 ++- .../DiplomaticMailBot.Common.csproj | 2 +- .../DiplomaticMailBot.Domain.Contracts.csproj | 2 +- .../DiplomaticMailBot.Domain.Implementations.csproj | 2 +- .../DiplomaticMailBot.Infra.Database.csproj | 2 +- .../DiplomaticMailBot.Infra.Entities.csproj | 2 +- ...maticMailBot.Infra.Repositories.Contracts.csproj | 2 +- ...ailBot.Infra.Repositories.Implementations.csproj | 2 +- .../DiplomaticMailBot.Infra.ServiceModels.csproj | 2 +- ...iplomaticMailBot.Infra.Telegram.Contracts.csproj | 2 +- ...ticMailBot.Infra.Telegram.Implementations.csproj | 3 ++- .../DiplomaticMailBot.Services.csproj | 2 +- .../DiplomaticMailBot.Tests.Common.csproj | 2 +- .../DiplomaticMailBot.Tests.Integration.csproj | 2 +- .../DiplomaticMailBot.Tests.Unit.csproj | 2 +- Directory.Build.props | 7 ++++++- Directory.Packages.props | 13 ++++++++----- 18 files changed, 38 insertions(+), 21 deletions(-) diff --git a/.editorconfig b/.editorconfig index 67ff2b0..bb5ac78 100644 --- a/.editorconfig +++ b/.editorconfig @@ -17,6 +17,10 @@ dotnet_diagnostic.CS1998.severity = suggestion # Reason: it could be too verbose to use it everywhere, but this is a good reminder dotnet_diagnostic.CA1848.severity = none +# CA1873: Evaluation of this argument may be expensive and unnecessary if logging is disabled +# Reason: logging performance is not critical in our context, and this warning is too aggressive +dotnet_diagnostic.CA1873.severity = none + # CA1716: Rename namespace Constants so that it no longer conflicts with the reserved language keyword 'Shared'. # Using a reserved keyword as the name of a namespace makes it harder for consumers in other languages to use the namespace. # Reason: we decided to keep it as is for now @@ -302,6 +306,9 @@ dotnet_diagnostic.S6608.severity = none # SA1011: Closing square bracket should be followed by a space. dotnet_diagnostic.SA1011.severity = none +# MA0015: The expression does not match a parameter +dotnet_diagnostic.MA0015.severity = none + # The relationship defined by this property contributes to a dependency loop resharper_entity_framework_model_validation_circular_dependency_highlighting = none diff --git a/DiplomaticMailBot.Cli/DiplomaticMailBot.Cli.csproj b/DiplomaticMailBot.Cli/DiplomaticMailBot.Cli.csproj index 5bfd308..cd7d4a3 100644 --- a/DiplomaticMailBot.Cli/DiplomaticMailBot.Cli.csproj +++ b/DiplomaticMailBot.Cli/DiplomaticMailBot.Cli.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable enable dotnet-DiplomaticMailBot.Cli-3d3bd409-87df-4c5d-b25c-562f3637ae10 @@ -20,6 +20,7 @@ + diff --git a/DiplomaticMailBot.Common/DiplomaticMailBot.Common.csproj b/DiplomaticMailBot.Common/DiplomaticMailBot.Common.csproj index 9c1b53b..5109c8e 100644 --- a/DiplomaticMailBot.Common/DiplomaticMailBot.Common.csproj +++ b/DiplomaticMailBot.Common/DiplomaticMailBot.Common.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable diff --git a/DiplomaticMailBot.Domain.Contracts/DiplomaticMailBot.Domain.Contracts.csproj b/DiplomaticMailBot.Domain.Contracts/DiplomaticMailBot.Domain.Contracts.csproj index 42e469b..0111f9e 100644 --- a/DiplomaticMailBot.Domain.Contracts/DiplomaticMailBot.Domain.Contracts.csproj +++ b/DiplomaticMailBot.Domain.Contracts/DiplomaticMailBot.Domain.Contracts.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable diff --git a/DiplomaticMailBot.Domain.Implementations/DiplomaticMailBot.Domain.Implementations.csproj b/DiplomaticMailBot.Domain.Implementations/DiplomaticMailBot.Domain.Implementations.csproj index 20a2619..d5b30e6 100644 --- a/DiplomaticMailBot.Domain.Implementations/DiplomaticMailBot.Domain.Implementations.csproj +++ b/DiplomaticMailBot.Domain.Implementations/DiplomaticMailBot.Domain.Implementations.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable diff --git a/DiplomaticMailBot.Infra.Database/DiplomaticMailBot.Infra.Database.csproj b/DiplomaticMailBot.Infra.Database/DiplomaticMailBot.Infra.Database.csproj index 8e9bc82..9e58a04 100644 --- a/DiplomaticMailBot.Infra.Database/DiplomaticMailBot.Infra.Database.csproj +++ b/DiplomaticMailBot.Infra.Database/DiplomaticMailBot.Infra.Database.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable enable diff --git a/DiplomaticMailBot.Infra.Entities/DiplomaticMailBot.Infra.Entities.csproj b/DiplomaticMailBot.Infra.Entities/DiplomaticMailBot.Infra.Entities.csproj index b593a32..937807e 100644 --- a/DiplomaticMailBot.Infra.Entities/DiplomaticMailBot.Infra.Entities.csproj +++ b/DiplomaticMailBot.Infra.Entities/DiplomaticMailBot.Infra.Entities.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable enable diff --git a/DiplomaticMailBot.Infra.Repositories.Contracts/DiplomaticMailBot.Infra.Repositories.Contracts.csproj b/DiplomaticMailBot.Infra.Repositories.Contracts/DiplomaticMailBot.Infra.Repositories.Contracts.csproj index 2d80ea2..6001a95 100644 --- a/DiplomaticMailBot.Infra.Repositories.Contracts/DiplomaticMailBot.Infra.Repositories.Contracts.csproj +++ b/DiplomaticMailBot.Infra.Repositories.Contracts/DiplomaticMailBot.Infra.Repositories.Contracts.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable diff --git a/DiplomaticMailBot.Infra.Repositories.Implementations/DiplomaticMailBot.Infra.Repositories.Implementations.csproj b/DiplomaticMailBot.Infra.Repositories.Implementations/DiplomaticMailBot.Infra.Repositories.Implementations.csproj index 8208f84..1735f86 100644 --- a/DiplomaticMailBot.Infra.Repositories.Implementations/DiplomaticMailBot.Infra.Repositories.Implementations.csproj +++ b/DiplomaticMailBot.Infra.Repositories.Implementations/DiplomaticMailBot.Infra.Repositories.Implementations.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable enable diff --git a/DiplomaticMailBot.Infra.ServiceModels/DiplomaticMailBot.Infra.ServiceModels.csproj b/DiplomaticMailBot.Infra.ServiceModels/DiplomaticMailBot.Infra.ServiceModels.csproj index 17b910f..237d661 100644 --- a/DiplomaticMailBot.Infra.ServiceModels/DiplomaticMailBot.Infra.ServiceModels.csproj +++ b/DiplomaticMailBot.Infra.ServiceModels/DiplomaticMailBot.Infra.ServiceModels.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable diff --git a/DiplomaticMailBot.Infra.Telegram.Contracts/DiplomaticMailBot.Infra.Telegram.Contracts.csproj b/DiplomaticMailBot.Infra.Telegram.Contracts/DiplomaticMailBot.Infra.Telegram.Contracts.csproj index e96cdcc..0f3b40f 100644 --- a/DiplomaticMailBot.Infra.Telegram.Contracts/DiplomaticMailBot.Infra.Telegram.Contracts.csproj +++ b/DiplomaticMailBot.Infra.Telegram.Contracts/DiplomaticMailBot.Infra.Telegram.Contracts.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable diff --git a/DiplomaticMailBot.Infra.Telegram.Implementations/DiplomaticMailBot.Infra.Telegram.Implementations.csproj b/DiplomaticMailBot.Infra.Telegram.Implementations/DiplomaticMailBot.Infra.Telegram.Implementations.csproj index f8cfad4..62d5291 100644 --- a/DiplomaticMailBot.Infra.Telegram.Implementations/DiplomaticMailBot.Infra.Telegram.Implementations.csproj +++ b/DiplomaticMailBot.Infra.Telegram.Implementations/DiplomaticMailBot.Infra.Telegram.Implementations.csproj @@ -1,12 +1,13 @@ - net9.0 + net10.0 enable enable + diff --git a/DiplomaticMailBot.Services/DiplomaticMailBot.Services.csproj b/DiplomaticMailBot.Services/DiplomaticMailBot.Services.csproj index 36de5d8..71fe1e6 100644 --- a/DiplomaticMailBot.Services/DiplomaticMailBot.Services.csproj +++ b/DiplomaticMailBot.Services/DiplomaticMailBot.Services.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable diff --git a/DiplomaticMailBot.Tests.Common/DiplomaticMailBot.Tests.Common.csproj b/DiplomaticMailBot.Tests.Common/DiplomaticMailBot.Tests.Common.csproj index 93b14f2..3025b3b 100644 --- a/DiplomaticMailBot.Tests.Common/DiplomaticMailBot.Tests.Common.csproj +++ b/DiplomaticMailBot.Tests.Common/DiplomaticMailBot.Tests.Common.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable diff --git a/DiplomaticMailBot.Tests.Integration/DiplomaticMailBot.Tests.Integration.csproj b/DiplomaticMailBot.Tests.Integration/DiplomaticMailBot.Tests.Integration.csproj index e5b4a4e..365ce4d 100644 --- a/DiplomaticMailBot.Tests.Integration/DiplomaticMailBot.Tests.Integration.csproj +++ b/DiplomaticMailBot.Tests.Integration/DiplomaticMailBot.Tests.Integration.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 latest enable enable diff --git a/DiplomaticMailBot.Tests.Unit/DiplomaticMailBot.Tests.Unit.csproj b/DiplomaticMailBot.Tests.Unit/DiplomaticMailBot.Tests.Unit.csproj index f3fff08..33ee8f7 100644 --- a/DiplomaticMailBot.Tests.Unit/DiplomaticMailBot.Tests.Unit.csproj +++ b/DiplomaticMailBot.Tests.Unit/DiplomaticMailBot.Tests.Unit.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 latest enable enable diff --git a/Directory.Build.props b/Directory.Build.props index 173289f..f758d12 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -4,13 +4,18 @@ true - 9-all + 10-all true true true strict + + + NU1903 diff --git a/Directory.Packages.props b/Directory.Packages.props index c6baa23..26c6030 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -40,19 +40,20 @@ - - - + + + + - + all @@ -70,5 +71,7 @@ + + - + \ No newline at end of file From 234c9543c02b12b21ddd83d5fa31b276303b4d78 Mon Sep 17 00:00:00 2001 From: Ilia Burakov Date: Fri, 14 Nov 2025 02:09:39 -0500 Subject: [PATCH 4/4] Updates .NET SDK version to 10.0 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. --- .github/workflows/reusable_run_tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable_run_tests.yml b/.github/workflows/reusable_run_tests.yml index 0925bfe..6b1714a 100644 --- a/.github/workflows/reusable_run_tests.yml +++ b/.github/workflows/reusable_run_tests.yml @@ -21,7 +21,7 @@ jobs: strategy: matrix: dotnet: [ - { tfm: net9.0, version: '9.0.x' }, + { tfm: net10.0, version: '10.0.x' } ] env: BUILD_CONFIG: Release @@ -35,7 +35,7 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: | - 9.0.x + 10.0.x - name: Display dotnet version run: |