diff --git a/.github/workflows/dotnet-build.yml b/.github/workflows/dotnet-build.yml index 7f39303..3eaeeef 100644 --- a/.github/workflows/dotnet-build.yml +++ b/.github/workflows/dotnet-build.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: configuration: [Release, Debug] - dotnet-version: [ '7.0.x' ] + dotnet-version: [ '8.0.x' ] steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml index cc6ac13..14cb01e 100644 --- a/.github/workflows/publish-nuget.yml +++ b/.github/workflows/publish-nuget.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.x' + dotnet-version: '8.0.x' source-url: https://nuget.pkg.github.com/martindybal/index.json env: NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/src/Analyzers/Dybal.Utils.Guards.Analyzers/Dybal.Utils.Guards.Analyzers.csproj b/src/Analyzers/Dybal.Utils.Guards.Analyzers/Dybal.Utils.Guards.Analyzers.csproj index 4f4a184..71dd94a 100644 --- a/src/Analyzers/Dybal.Utils.Guards.Analyzers/Dybal.Utils.Guards.Analyzers.csproj +++ b/src/Analyzers/Dybal.Utils.Guards.Analyzers/Dybal.Utils.Guards.Analyzers.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/Tests/Directory.Build.props b/src/Tests/Directory.Build.props index 2d06267..202c0cd 100644 --- a/src/Tests/Directory.Build.props +++ b/src/Tests/Directory.Build.props @@ -1,7 +1,7 @@ - net7.0 + net8.0 latest false enable @@ -14,11 +14,11 @@ - - + + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Tests/Tests.Dybal.Utils.Extensions.DependencyInjection/Tests.Dybal.Utils.Extensions.DependencyInjection.csproj b/src/Tests/Tests.Dybal.Utils.Extensions.DependencyInjection/Tests.Dybal.Utils.Extensions.DependencyInjection.csproj index 08c9f36..2b1a0e9 100644 --- a/src/Tests/Tests.Dybal.Utils.Extensions.DependencyInjection/Tests.Dybal.Utils.Extensions.DependencyInjection.csproj +++ b/src/Tests/Tests.Dybal.Utils.Extensions.DependencyInjection/Tests.Dybal.Utils.Extensions.DependencyInjection.csproj @@ -1,7 +1,7 @@ - + diff --git a/src/Tests/Tests.Dybal.Utils.Guards.Analyzers/Tests.Dybal.Utils.Guards.Analyzers.csproj b/src/Tests/Tests.Dybal.Utils.Guards.Analyzers/Tests.Dybal.Utils.Guards.Analyzers.csproj index f395c21..0d28224 100644 --- a/src/Tests/Tests.Dybal.Utils.Guards.Analyzers/Tests.Dybal.Utils.Guards.Analyzers.csproj +++ b/src/Tests/Tests.Dybal.Utils.Guards.Analyzers/Tests.Dybal.Utils.Guards.Analyzers.csproj @@ -1,9 +1,9 @@  - - - + + + diff --git a/src/Tests/Tests.Dybal.Utils.Guards.Analyzers/Utilities/VerifyUtils.cs b/src/Tests/Tests.Dybal.Utils.Guards.Analyzers/Utilities/VerifyUtils.cs index 24622c4..58e1e1d 100644 --- a/src/Tests/Tests.Dybal.Utils.Guards.Analyzers/Utilities/VerifyUtils.cs +++ b/src/Tests/Tests.Dybal.Utils.Guards.Analyzers/Utilities/VerifyUtils.cs @@ -16,7 +16,7 @@ public static Task Test(string source, params DiagnosticResult[] diagnostics) TestCode = source, TestState = { - ReferenceAssemblies = ReferenceAssemblies.Net.Net70, + ReferenceAssemblies = ReferenceAssemblies.Net.Net80, AdditionalReferences = { MetadataReference.CreateFromFile(typeof(Guard).Assembly.Location) } } }; diff --git a/src/Tests/Tests.Dybal.Utils.Guards/MultipleArgumentGuard/AtLeastOneIsNotNullTests.cs b/src/Tests/Tests.Dybal.Utils.Guards/MultipleArgumentGuard/AtLeastOneIsNotNullTests.cs index 8e47ae8..2ed50b8 100644 --- a/src/Tests/Tests.Dybal.Utils.Guards/MultipleArgumentGuard/AtLeastOneIsNotNullTests.cs +++ b/src/Tests/Tests.Dybal.Utils.Guards/MultipleArgumentGuard/AtLeastOneIsNotNullTests.cs @@ -13,7 +13,7 @@ public class AtLeastOneIsNotNullTests : UnitTestsBase [InlineData("A", null, null)] [InlineData(null, "A", null)] [InlineData(null, null, "A")] - public void NotThrow_When_at_least_one_value_is_not_null(object value1, object value2, object value3) + public void NotThrow_When_at_least_one_value_is_not_null(object? value1, object? value2, object? value3) { // Arrange var sample = new diff --git a/src/Tests/Tests.Dybal.Utils.TypedValues.SourceGenerators/Directory.Build.props b/src/Tests/Tests.Dybal.Utils.TypedValues.SourceGenerators/Directory.Build.props index 2d06267..b8ec875 100644 --- a/src/Tests/Tests.Dybal.Utils.TypedValues.SourceGenerators/Directory.Build.props +++ b/src/Tests/Tests.Dybal.Utils.TypedValues.SourceGenerators/Directory.Build.props @@ -1,7 +1,7 @@ - net7.0 + net8.0 latest false enable @@ -13,18 +13,4 @@ - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - \ No newline at end of file diff --git a/src/Tests/Tests.Dybal.Utils.TypedValues.SourceGenerators/Tests.Dybal.Utils.TypedValues.SourceGenerators.csproj b/src/Tests/Tests.Dybal.Utils.TypedValues.SourceGenerators/Tests.Dybal.Utils.TypedValues.SourceGenerators.csproj index 51c5a12..34225a9 100644 --- a/src/Tests/Tests.Dybal.Utils.TypedValues.SourceGenerators/Tests.Dybal.Utils.TypedValues.SourceGenerators.csproj +++ b/src/Tests/Tests.Dybal.Utils.TypedValues.SourceGenerators/Tests.Dybal.Utils.TypedValues.SourceGenerators.csproj @@ -5,8 +5,8 @@ - - + + diff --git a/src/Tests/Tests.Dybal.Utils.TypedValues.SourceGenerators/Verifiers/CSharpSourceGeneratorVerifier.cs b/src/Tests/Tests.Dybal.Utils.TypedValues.SourceGenerators/Verifiers/CSharpSourceGeneratorVerifier.cs index df57bdd..c20c915 100644 --- a/src/Tests/Tests.Dybal.Utils.TypedValues.SourceGenerators/Verifiers/CSharpSourceGeneratorVerifier.cs +++ b/src/Tests/Tests.Dybal.Utils.TypedValues.SourceGenerators/Verifiers/CSharpSourceGeneratorVerifier.cs @@ -48,7 +48,7 @@ public static async Task VerifyGeneratorAsync(string source, DiagnosticResult[] Sources = { source }, AdditionalReferences = { typeof(TypedValueAttribute).Assembly, typeof(Converters).Assembly }, }, - ReferenceAssemblies = ReferenceAssemblies.Net.Net70, + ReferenceAssemblies = ReferenceAssemblies.Net.Net80, LanguageVersion = LanguageVersion.CSharp11, }; diff --git a/src/Utils/Directory.Build.props b/src/Utils/Directory.Build.props index fc8e696..793257d 100644 --- a/src/Utils/Directory.Build.props +++ b/src/Utils/Directory.Build.props @@ -1,6 +1,6 @@ - net7.0 + net8.0 latest enable enable @@ -18,7 +18,7 @@ - + diff --git a/src/Utils/Dybal.Utils.Extensions.DependencyInjection/Dybal.Utils.Extensions.DependencyInjection.csproj b/src/Utils/Dybal.Utils.Extensions.DependencyInjection/Dybal.Utils.Extensions.DependencyInjection.csproj index 56a93b7..3b8c0c0 100644 --- a/src/Utils/Dybal.Utils.Extensions.DependencyInjection/Dybal.Utils.Extensions.DependencyInjection.csproj +++ b/src/Utils/Dybal.Utils.Extensions.DependencyInjection/Dybal.Utils.Extensions.DependencyInjection.csproj @@ -1,4 +1,4 @@ - + https://github.com/martindybal/Dybal.Utils/tree/main/src/Utils/Dybal.Utils.Extensions.DependencyInjection @@ -7,8 +7,8 @@ - - + + diff --git a/src/Utils/Dybal.Utils.Guards.ObjectExtensions/Dybal.Utils.Guards.ObjectExtensions.csproj b/src/Utils/Dybal.Utils.Guards.ObjectExtensions/Dybal.Utils.Guards.ObjectExtensions.csproj index 084ae85..6a5468f 100644 --- a/src/Utils/Dybal.Utils.Guards.ObjectExtensions/Dybal.Utils.Guards.ObjectExtensions.csproj +++ b/src/Utils/Dybal.Utils.Guards.ObjectExtensions/Dybal.Utils.Guards.ObjectExtensions.csproj @@ -17,8 +17,4 @@ - - - - diff --git a/src/Utils/Dybal.Utils.Guards/Dybal.Utils.Guards.csproj b/src/Utils/Dybal.Utils.Guards/Dybal.Utils.Guards.csproj index 3f17d87..dcfeaa2 100644 --- a/src/Utils/Dybal.Utils.Guards/Dybal.Utils.Guards.csproj +++ b/src/Utils/Dybal.Utils.Guards/Dybal.Utils.Guards.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/Utils/Dybal.Utils.TypedValues.SourceGenerators/Dybal.Utils.TypedValues.SourceGenerators.csproj b/src/Utils/Dybal.Utils.TypedValues.SourceGenerators/Dybal.Utils.TypedValues.SourceGenerators.csproj index a4b0f68..91b14d8 100644 --- a/src/Utils/Dybal.Utils.TypedValues.SourceGenerators/Dybal.Utils.TypedValues.SourceGenerators.csproj +++ b/src/Utils/Dybal.Utils.TypedValues.SourceGenerators/Dybal.Utils.TypedValues.SourceGenerators.csproj @@ -8,7 +8,7 @@ - + diff --git a/src/Utils/Dybal.Utils.TypedValues/Dybal.Utils.TypedValues.csproj b/src/Utils/Dybal.Utils.TypedValues/Dybal.Utils.TypedValues.csproj index 39d5f10..8c34970 100644 --- a/src/Utils/Dybal.Utils.TypedValues/Dybal.Utils.TypedValues.csproj +++ b/src/Utils/Dybal.Utils.TypedValues/Dybal.Utils.TypedValues.csproj @@ -7,8 +7,7 @@ - - +