From 9e3b3c4a6e6acf77069ba24b60cde352724c4cc1 Mon Sep 17 00:00:00 2001 From: andbaz Date: Tue, 14 Nov 2023 21:43:10 +0200 Subject: [PATCH] added net8.0 target --- .globalconfig | 9 +++++++++ Directory.Build.props | 2 +- global.json | 2 +- ...etToys.TemplatedConfigurationProvider.csproj | 7 ++----- .../TemplatedConfigurationProvider.cs | 2 +- ....TemplatedConfigurationProvider.Tests.csproj | 17 +++++++---------- 6 files changed, 21 insertions(+), 18 deletions(-) diff --git a/.globalconfig b/.globalconfig index a763f4f..4d137e3 100644 --- a/.globalconfig +++ b/.globalconfig @@ -6,6 +6,15 @@ dotnet_diagnostic.CA1848.severity = none # IDE0005: Using directive is unnecessary. dotnet_diagnostic.IDE0005.severity = warning +# IDE0077: Avoid legacy format target in global 'SuppressMessageAttribute' +dotnet_diagnostic.IDE0077.severity = warning + +# IDE0076: Remove invalid global 'SuppressMessageAttribute' +dotnet_diagnostic.IDE0076.severity = warning + +# IDE0079: Remove unnecessary suppression +dotnet_diagnostic.IDE0079.severity = warning + # IDE0130: Namespace does not match folder structure dotnet_diagnostic.IDE0130.severity = warning diff --git a/Directory.Build.props b/Directory.Build.props index 9d618dc..de619a4 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -8,7 +8,7 @@ enable disable - 7.0-Recommended + 8.0-Recommended true true 1591 diff --git a/global.json b/global.json index 1c7274b..501e79a 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "7.0.100", + "version": "8.0.100", "rollForward": "latestFeature" } } \ No newline at end of file diff --git a/src/PetToys.TemplatedConfigurationProvider/PetToys.TemplatedConfigurationProvider.csproj b/src/PetToys.TemplatedConfigurationProvider/PetToys.TemplatedConfigurationProvider.csproj index 91d4a89..4570691 100644 --- a/src/PetToys.TemplatedConfigurationProvider/PetToys.TemplatedConfigurationProvider.csproj +++ b/src/PetToys.TemplatedConfigurationProvider/PetToys.TemplatedConfigurationProvider.csproj @@ -1,7 +1,7 @@  - net6.0;net7.0 + net6.0;net7.0;net8.0 @@ -11,6 +11,7 @@ + @@ -20,10 +21,6 @@ - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/PetToys.TemplatedConfigurationProvider/TemplatedConfigurationProvider.cs b/src/PetToys.TemplatedConfigurationProvider/TemplatedConfigurationProvider.cs index 04faa26..8c3d758 100644 --- a/src/PetToys.TemplatedConfigurationProvider/TemplatedConfigurationProvider.cs +++ b/src/PetToys.TemplatedConfigurationProvider/TemplatedConfigurationProvider.cs @@ -13,7 +13,7 @@ internal sealed class TemplatedConfigurationProvider : ConfigurationProvider private readonly char _endChar; private readonly IConfigurationRoot _configurationRoot; - private IDictionary _otherProvidersData = new Dictionary(StringComparer.OrdinalIgnoreCase); + private Dictionary _otherProvidersData = new Dictionary(StringComparer.OrdinalIgnoreCase); public TemplatedConfigurationProvider( TemplatedConfigurationOptions options, diff --git a/test/PetToys.TemplatedConfigurationProvider.Tests/PetToys.TemplatedConfigurationProvider.Tests.csproj b/test/PetToys.TemplatedConfigurationProvider.Tests/PetToys.TemplatedConfigurationProvider.Tests.csproj index ed354c4..67ffa49 100644 --- a/test/PetToys.TemplatedConfigurationProvider.Tests/PetToys.TemplatedConfigurationProvider.Tests.csproj +++ b/test/PetToys.TemplatedConfigurationProvider.Tests/PetToys.TemplatedConfigurationProvider.Tests.csproj @@ -1,18 +1,19 @@  - net6.0;net7.0 + net6.0;net7.0;net8.0 false - + + - - - - + + + + runtime; build; native; contentfiles; analyzers; buildtransitive all @@ -23,10 +24,6 @@ - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - all runtime; build; native; contentfiles; analyzers; buildtransitive