From b43029affa73ea1eeba7b8894f7b81befdb2719f Mon Sep 17 00:00:00 2001 From: Antonis Kotis Date: Mon, 17 Nov 2025 18:33:40 +0200 Subject: [PATCH] Upgrade to .NET 10.0 and update dependencies Updated target frameworks to include .NET 10.0 and removed support for .NET 6.0. Upgraded package references to their latest versions, including `Microsoft.Extensions.*`, `Microsoft.NET.Test.Sdk`, and `xunit.runner.visualstudio`. Bumped `FeatureMasterX` version to 10.0.0 and updated release notes accordingly. Refactored `ListCheckFeatureFilterProvider.cs` to use nullable dictionary values in `ConfigurationBuilder.AddInMemoryCollection`. Made minor formatting adjustments in project files. --- .../FeatureMasterX.XUnitTest.csproj | 12 ++++++------ FeatureMasterX/FeatureMasterX.csproj | 14 ++++++++------ .../Filters/ListCheckFeatureFilterProvider.cs | 4 ++-- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/FeatureMasterX.XUnitTest/FeatureMasterX.XUnitTest.csproj b/FeatureMasterX.XUnitTest/FeatureMasterX.XUnitTest.csproj index 5b95a42..313d1ec 100644 --- a/FeatureMasterX.XUnitTest/FeatureMasterX.XUnitTest.csproj +++ b/FeatureMasterX.XUnitTest/FeatureMasterX.XUnitTest.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable @@ -14,12 +14,12 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - + + + + - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/FeatureMasterX/FeatureMasterX.csproj b/FeatureMasterX/FeatureMasterX.csproj index c862452..a97809d 100644 --- a/FeatureMasterX/FeatureMasterX.csproj +++ b/FeatureMasterX/FeatureMasterX.csproj @@ -1,7 +1,7 @@  - net6.0;net8.0;net9.0 + net8.0;net9.0;net10.0 https://github.com/SkJonko/FeatureMasterX MIT image.png @@ -14,10 +14,12 @@ https://github.com/SkJonko/FeatureMasterX FeatureMasterX A powerful and easy-to-use extension for Microsoft's FeatureManagement library - 9.0.2 + 10.0.0 SKJonko Copyright © 2025 + 10.0.0 + - Feature: Port in NET 10.0. Remove support for net6.0 9.0.2 - Feature: Add Scoped Dependency Injection of FeatureMasterX 9.0.1 @@ -32,16 +34,16 @@ - - 6.0.0 + 8.0.2 9.0.1 + 9.0.1 - + - + diff --git a/FeatureMasterX/Filters/ListCheckFeatureFilterProvider.cs b/FeatureMasterX/Filters/ListCheckFeatureFilterProvider.cs index 289846b..ec46948 100644 --- a/FeatureMasterX/Filters/ListCheckFeatureFilterProvider.cs +++ b/FeatureMasterX/Filters/ListCheckFeatureFilterProvider.cs @@ -40,7 +40,7 @@ public Task GetFeatureDefinitionAsync(string featureName) { Name = FeatureMasterXExtensions.ListCheck, Parameters = new ConfigurationBuilder() - .AddInMemoryCollection(new Dictionary + .AddInMemoryCollection(new Dictionary { { FeatureMasterXExtensions.AllowedUsers, JsonSerializer.Serialize(allowedUsers) } }) @@ -69,7 +69,7 @@ public async IAsyncEnumerable GetAllFeatureDefinitionsAsync() { Name = FeatureMasterXExtensions.ListCheck, Parameters = new ConfigurationBuilder() - .AddInMemoryCollection(new Dictionary + .AddInMemoryCollection(new Dictionary { { FeatureMasterXExtensions.AllowedUsers, JsonSerializer.Serialize(allowedUsers) } })