From d72f2f4869939dad2b7dabbf80338f994e256f2e Mon Sep 17 00:00:00 2001 From: David Kallesen Date: Fri, 5 Apr 2024 10:48:52 +0200 Subject: [PATCH 1/7] feat: Upgrade to dotnet8 --- .editorconfig | 28 +++++++++++++++++++---- .github/workflows/post-integration.yml | 4 ++-- .github/workflows/pre-integration.yml | 8 +++---- .github/workflows/release.yml | 4 ++-- Directory.Build.props | 4 ++-- atc-coding-rules-updater.json | 21 +++++++++++++---- atc-coding-rules-updater.ps1 | 2 +- src/.editorconfig | 6 ++--- test/.editorconfig | 9 ++++---- test/Atc.Test.Tests/Atc.Test.Tests.csproj | 2 +- 10 files changed, 60 insertions(+), 28 deletions(-) diff --git a/.editorconfig b/.editorconfig index f8cdcdc..a861d3c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,8 +1,8 @@ # ATC coding rules - https://github.com/atc-net/atc-coding-rules -# Version: 1.0.9 -# Updated: 01-02-2022 +# Version: 1.0.0 +# Updated: 25-09-2023 # Location: Root -# Distribution: DotNet6 +# Distribution: DotNet8 # Inspired by: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options ########################################## @@ -87,6 +87,7 @@ dotnet_separate_import_directive_groups = false # .NET Code Style Settings # https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#net-code-style-settings [*.{cs,csx,cake}] + # "this." and "Me." qualifiers # https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#this-and-me dotnet_style_qualification_for_field = false @@ -146,12 +147,17 @@ dotnet_style_operator_placement_when_wrapping = end_of_line # C# Code Style Settings # https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#c-code-style-settings [*.{cs,csx,cake}] + # Implicit and explicit types # https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#implicit-and-explicit-types csharp_style_var_for_built_in_types = true # IDE0007 and IDE0008 csharp_style_var_when_type_is_apparent = true # IDE0007 and IDE0008 csharp_style_var_elsewhere = true # IDE0007 and IDE0008 +# Namespace declaration preferences +# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0160-ide0161?view=vs-2022 +csharp_style_namespace_declarations = file_scoped # IDE0160 and IDE0161 + # Expression-bodied members # https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#expression-bodied-members csharp_style_expression_bodied_constructors = when_on_single_line # IDE0021 @@ -195,8 +201,8 @@ csharp_style_unused_value_assignment_preference = discard_variable # Index and range preferences # https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#index-and-range-preferences -csharp_style_prefer_index_operator = true # IDE0056 -csharp_style_prefer_range_operator = true # IDE0057 +csharp_style_prefer_index_operator = true:suggestion # IDE0056 +csharp_style_prefer_range_operator = true:suggestion # IDE0057 # Miscellaneous preferences # https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#miscellaneous-preferences @@ -444,10 +450,12 @@ dotnet_naming_rule.parameters_rule.severity = warning dotnet_diagnostic.MA0003.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0003.md dotnet_diagnostic.MA0004.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0004.md dotnet_diagnostic.MA0006.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0006.md +dotnet_diagnostic.MA0011.severity = none # Duplicate of CA1305 dotnet_diagnostic.MA0016.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0016.md dotnet_diagnostic.MA0025.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0025.md dotnet_diagnostic.MA0026.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0026.md dotnet_diagnostic.MA0028.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0028.md +dotnet_diagnostic.MA0038.severity = none # Duplicate of CA1822 dotnet_diagnostic.MA0048.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0048.md @@ -455,8 +463,12 @@ dotnet_diagnostic.MA0048.severity = error # https://github.com/atc-net # https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ dotnet_diagnostic.CA1014.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1014.md dotnet_diagnostic.CA1068.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1068.md +dotnet_diagnostic.CA1305.severity = error dotnet_diagnostic.CA1707.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1707.md +dotnet_diagnostic.CA1812.severity = none +dotnet_diagnostic.CA1822.severity = suggestion dotnet_diagnostic.CA2007.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA2007.md +dotnet_diagnostic.IDE0005.severity = warning # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/IDE0005.md dotnet_diagnostic.IDE0058.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/IDE0058.md @@ -481,6 +493,7 @@ dotnet_diagnostic.SA1202.severity = none # https://github.com/atc-net dotnet_diagnostic.SA1204.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1204.md dotnet_diagnostic.SA1413.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1413.md dotnet_diagnostic.SA1600.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1600.md +dotnet_diagnostic.SA1601.severity = none dotnet_diagnostic.SA1602.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1602.md dotnet_diagnostic.SA1604.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1604.md dotnet_diagnostic.SA1623.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1623.md @@ -494,6 +507,11 @@ dotnet_diagnostic.SA1649.severity = error # https://github.com/atc-net dotnet_diagnostic.S1135.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/SonarAnalyzerCSharp/S1135.md +########################################## +# Custom - File Extension Settings +########################################## + + ########################################## # Custom - Code Analyzers Rules ########################################## diff --git a/.github/workflows/post-integration.yml b/.github/workflows/post-integration.yml index ebd2771..e5ce7a6 100644 --- a/.github/workflows/post-integration.yml +++ b/.github/workflows/post-integration.yml @@ -30,10 +30,10 @@ jobs: with: setAllVars: true - - name: ⚙️ Setup dotnet 6.0.x + - name: ⚙️ Setup dotnet 8.0.x uses: actions/setup-dotnet@v1 with: - dotnet-version: '6.0.x' + dotnet-version: '8.0.x' - name: ⚙️ Set up JDK 17 uses: actions/setup-java@v3 diff --git a/.github/workflows/pre-integration.yml b/.github/workflows/pre-integration.yml index fcae61b..8562620 100644 --- a/.github/workflows/pre-integration.yml +++ b/.github/workflows/pre-integration.yml @@ -19,10 +19,10 @@ jobs: with: fetch-depth: 0 - - name: ⚙️ Setup dotnet 6.0.x + - name: ⚙️ Setup dotnet 8.0.x uses: actions/setup-dotnet@v1 with: - dotnet-version: '6.0.x' + dotnet-version: '8.0.x' - name: 🧹 Clean run: dotnet clean -c Release && dotnet nuget locals all --clear @@ -43,10 +43,10 @@ jobs: with: fetch-depth: 0 - - name: ⚙️ Setup dotnet 6.0.x + - name: ⚙️ Setup dotnet 8.0.x uses: actions/setup-dotnet@v1 with: - dotnet-version: '6.0.x' + dotnet-version: '8.0.x' - name: 🔁 Restore packages run: dotnet restore diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0af18be..6f87238 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,10 +27,10 @@ jobs: with: setAllVars: true - - name: ⚙️ Setup dotnet 6.0.x + - name: ⚙️ Setup dotnet 8.0.x uses: actions/setup-dotnet@v1 with: - dotnet-version: '6.0.x' + dotnet-version: '8.0.x' - name: 🧹 Clean run: dotnet clean -c Release && dotnet nuget locals all --clear diff --git a/Directory.Build.props b/Directory.Build.props index fdce92f..ca95c1b 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -16,9 +16,9 @@ enable - 10.0 + 12.0 enable - net6.0 + net8.0 true 1573,1591,1712 diff --git a/atc-coding-rules-updater.json b/atc-coding-rules-updater.json index 08df6a5..65e3cb3 100644 --- a/atc-coding-rules-updater.json +++ b/atc-coding-rules-updater.json @@ -1,6 +1,19 @@ { - "mappings": { - "src": { "Paths": [ "src" ] }, - "test": { "Paths": [ "test" ] } - } + "projectTarget": "DotNet8", + "useLatestMinorNugetVersion": true, + "useTemporarySuppressions": false, + "temporarySuppressionAsExcel": false, + "analyzerProviderCollectingMode": "LocalCache", + "mappings": { + "src": { + "paths": [ + "src" + ] + }, + "test": { + "paths": [ + "test" + ] + } + } } \ No newline at end of file diff --git a/atc-coding-rules-updater.ps1 b/atc-coding-rules-updater.ps1 index df1a648..3d555a8 100644 --- a/atc-coding-rules-updater.ps1 +++ b/atc-coding-rules-updater.ps1 @@ -9,4 +9,4 @@ atc-coding-rules-updater ` run ` -p $currentPath ` --optionsPath $currentPath'\atc-coding-rules-updater.json' ` - -v \ No newline at end of file + --verbose \ No newline at end of file diff --git a/src/.editorconfig b/src/.editorconfig index c2b78c6..970bed4 100644 --- a/src/.editorconfig +++ b/src/.editorconfig @@ -1,8 +1,8 @@ # ATC coding rules - https://github.com/atc-net/atc-coding-rules -# Version: 1.0.9 -# Updated: 01-02-2022 +# Version: 1.0.0 +# Updated: 25-09-2023 # Location: src -# Distribution: DotNet6 +# Distribution: DotNet8 # Inspired by: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options ########################################## diff --git a/test/.editorconfig b/test/.editorconfig index 8fd2216..c8bf541 100644 --- a/test/.editorconfig +++ b/test/.editorconfig @@ -1,8 +1,8 @@ # ATC coding rules - https://github.com/atc-net/atc-coding-rules -# Version: 1.0.9 -# Updated: 01-02-2022 +# Version: 1.0.0 +# Updated: 25-09-2023 # Location: test -# Distribution: DotNet6 +# Distribution: DotNet8 # Inspired by: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options ########################################## @@ -27,6 +27,7 @@ dotnet_diagnostic.MA0016.severity = none # https://github.com/atc-net # Microsoft - Code Analysis # https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ dotnet_diagnostic.CA1068.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1068.md +dotnet_diagnostic.CA1602.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1602.md dotnet_diagnostic.CA1707.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1707.md dotnet_diagnostic.CA2007.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA2007.md @@ -61,4 +62,4 @@ dotnet_diagnostic.CA1812.severity = none # Test classes used as gener dotnet_diagnostic.SA1202.severity = none # Private helper methods makes sense to keep at top of test classes, as tests are added to bottom. dotnet_diagnostic.CA2201.severity = none # Instantiating Exceptions as test data should be allowed. dotnet_diagnostic.CA1711.severity = none # Identifiers should not have incorrect suffix -dotnet_diagnostic.S2344.severity = none # Enumeration type names should not have "Flags" or "Enum" suffixes +dotnet_diagnostic.S2344.severity = none # Enumeration type names should not have "Flags" or "Enum" suffixes \ No newline at end of file diff --git a/test/Atc.Test.Tests/Atc.Test.Tests.csproj b/test/Atc.Test.Tests/Atc.Test.Tests.csproj index 40fb6e8..24a9448 100644 --- a/test/Atc.Test.Tests/Atc.Test.Tests.csproj +++ b/test/Atc.Test.Tests/Atc.Test.Tests.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 false From 1f55d117d121538474d78a5dc30ee95901f4d5a9 Mon Sep 17 00:00:00 2001 From: David Kallesen Date: Fri, 5 Apr 2024 10:49:13 +0200 Subject: [PATCH 2/7] feat: Nuget updates --- Directory.Build.props | 4 ++-- src/Atc.Test/Atc.Test.csproj | 12 ++++++------ src/Directory.Build.props | 3 +-- test/Atc.Test.Tests/Atc.Test.Tests.csproj | 8 ++++---- test/Directory.Build.props | 2 +- 5 files changed, 14 insertions(+), 15 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index ca95c1b..3f780fa 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -43,10 +43,10 @@ - + - + \ No newline at end of file diff --git a/src/Atc.Test/Atc.Test.csproj b/src/Atc.Test/Atc.Test.csproj index a72635f..7f00624 100644 --- a/src/Atc.Test/Atc.Test.csproj +++ b/src/Atc.Test/Atc.Test.csproj @@ -14,12 +14,12 @@ - - - - - - + + + + + + \ No newline at end of file diff --git a/src/Directory.Build.props b/src/Directory.Build.props index c9a3e71..93e4ae2 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -22,7 +22,6 @@ Library - net5.0 true @@ -54,7 +53,7 @@ - + diff --git a/test/Atc.Test.Tests/Atc.Test.Tests.csproj b/test/Atc.Test.Tests/Atc.Test.Tests.csproj index 24a9448..7189f60 100644 --- a/test/Atc.Test.Tests/Atc.Test.Tests.csproj +++ b/test/Atc.Test.Tests/Atc.Test.Tests.csproj @@ -7,13 +7,13 @@ - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/test/Directory.Build.props b/test/Directory.Build.props index ca600f9..91d531f 100644 --- a/test/Directory.Build.props +++ b/test/Directory.Build.props @@ -11,7 +11,7 @@ - + From 14d4e27e7f6da917779fd0fda06b09986a1b1346 Mon Sep 17 00:00:00 2001 From: David Kallesen Date: Fri, 5 Apr 2024 10:49:36 +0200 Subject: [PATCH 3/7] chore: Suppress MA0147 --- src/Atc.Test/SubstituteExtensions.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Atc.Test/SubstituteExtensions.cs b/src/Atc.Test/SubstituteExtensions.cs index ff5d428..593680c 100644 --- a/src/Atc.Test/SubstituteExtensions.cs +++ b/src/Atc.Test/SubstituteExtensions.cs @@ -8,6 +8,10 @@ namespace Atc.Test; "AsyncUsage", "AsyncFixer03:Fire-and-forget async-void methods or delegates", Justification = "Calls on substitutes are made for validation, await is not required.")] +[SuppressMessage( + "AsyncUsage", + "MA0147:Avoid async void method for delegate", + Justification = "OK.")] public static class SubstituteExtensions { /// From 3b0710d8fd610bfd6339e7116ecbd26bd1f673a1 Mon Sep 17 00:00:00 2001 From: David Kallesen Date: Fri, 5 Apr 2024 11:17:36 +0200 Subject: [PATCH 4/7] chore: Update uses: actions/checkout@v2 -> uses: actions/checkout@v3 --- .github/workflows/post-integration.yml | 2 +- .github/workflows/pre-integration.yml | 4 ++-- .github/workflows/release.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/post-integration.yml b/.github/workflows/post-integration.yml index e5ce7a6..6251557 100644 --- a/.github/workflows/post-integration.yml +++ b/.github/workflows/post-integration.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: 🛒 Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 token: ${{ secrets.PAT_WORKFLOWS }} diff --git a/.github/workflows/pre-integration.yml b/.github/workflows/pre-integration.yml index 8562620..efd68fa 100644 --- a/.github/workflows/pre-integration.yml +++ b/.github/workflows/pre-integration.yml @@ -15,7 +15,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: 🛒 Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -39,7 +39,7 @@ jobs: - dotnet-build steps: - name: 🛒 Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f87238..c93b24c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: 🛒 Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 token: ${{ secrets.PAT_WORKFLOWS }} From 85ca6b85c17d39af745abfb680f474edc522e038 Mon Sep 17 00:00:00 2001 From: David Kallesen Date: Fri, 5 Apr 2024 11:22:10 +0200 Subject: [PATCH 5/7] fix: invalid yaml indenting --- .github/workflows/post-integration.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/post-integration.yml b/.github/workflows/post-integration.yml index 6251557..eb046f9 100644 --- a/.github/workflows/post-integration.yml +++ b/.github/workflows/post-integration.yml @@ -36,10 +36,10 @@ jobs: dotnet-version: '8.0.x' - name: ⚙️ Set up JDK 17 - uses: actions/setup-java@v3 - with: - java-version: 17 - distribution: 'zulu' + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: 'zulu' - name: 🧹 Clean run: dotnet clean -c Release && dotnet nuget locals all --clear From af6734af41fef1710315d19c2f37b8f436425b8b Mon Sep 17 00:00:00 2001 From: David Kallesen Date: Fri, 5 Apr 2024 11:26:50 +0200 Subject: [PATCH 6/7] chore: Update actions/checkout@v3 -> actions/checkout@v4 --- .github/workflows/post-integration.yml | 2 +- .github/workflows/pre-integration.yml | 4 ++-- .github/workflows/release.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/post-integration.yml b/.github/workflows/post-integration.yml index eb046f9..1ee3543 100644 --- a/.github/workflows/post-integration.yml +++ b/.github/workflows/post-integration.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: 🛒 Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.PAT_WORKFLOWS }} diff --git a/.github/workflows/pre-integration.yml b/.github/workflows/pre-integration.yml index efd68fa..0f2408b 100644 --- a/.github/workflows/pre-integration.yml +++ b/.github/workflows/pre-integration.yml @@ -15,7 +15,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: 🛒 Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -39,7 +39,7 @@ jobs: - dotnet-build steps: - name: 🛒 Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c93b24c..af9599d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: 🛒 Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.PAT_WORKFLOWS }} From d035e12edccd55a22c873f7b97a8e2b4662ab4b6 Mon Sep 17 00:00:00 2001 From: David Kallesen Date: Fri, 5 Apr 2024 11:27:47 +0200 Subject: [PATCH 7/7] chore: Update actions/setup-dotnet@v1 -> actions/setup-dotnet@v4 --- .github/workflows/post-integration.yml | 2 +- .github/workflows/pre-integration.yml | 4 ++-- .github/workflows/release.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/post-integration.yml b/.github/workflows/post-integration.yml index 1ee3543..a6f3019 100644 --- a/.github/workflows/post-integration.yml +++ b/.github/workflows/post-integration.yml @@ -31,7 +31,7 @@ jobs: setAllVars: true - name: ⚙️ Setup dotnet 8.0.x - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' diff --git a/.github/workflows/pre-integration.yml b/.github/workflows/pre-integration.yml index 0f2408b..7a7009f 100644 --- a/.github/workflows/pre-integration.yml +++ b/.github/workflows/pre-integration.yml @@ -20,7 +20,7 @@ jobs: fetch-depth: 0 - name: ⚙️ Setup dotnet 8.0.x - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' @@ -44,7 +44,7 @@ jobs: fetch-depth: 0 - name: ⚙️ Setup dotnet 8.0.x - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index af9599d..0822c83 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: setAllVars: true - name: ⚙️ Setup dotnet 8.0.x - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: dotnet-version: '8.0.x'