diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ce9576b96..794d6e1353 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: runs-on: windows-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install SQL Local DB diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index ad2421a611..a76371b638 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -14,7 +14,7 @@ jobs: pull-requests: write # for dessant/lock-threads to lock PRs runs-on: ubuntu-latest steps: - - uses: dessant/lock-threads@v2 + - uses: dessant/lock-threads@v5 with: github-token: ${{ github.token }} issue-lock-inactive-days: 31 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1820dee63b..7cec7204a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: runs-on: windows-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install SQL Local DB diff --git a/src/AutoMapper.DI.Tests/AutoMapper.DI.Tests.csproj b/src/AutoMapper.DI.Tests/AutoMapper.DI.Tests.csproj index 6bcbcec357..8f4bcbe920 100644 --- a/src/AutoMapper.DI.Tests/AutoMapper.DI.Tests.csproj +++ b/src/AutoMapper.DI.Tests/AutoMapper.DI.Tests.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 true AutoMapper.Extensions.Microsoft.DependencyInjection.Tests AutoMapper.Extensions.Microsoft.DependencyInjection.Tests @@ -16,11 +16,11 @@ - - + + - - + + diff --git a/src/AutoMapper/ApiCompat/PreBuild.ps1 b/src/AutoMapper/ApiCompat/PreBuild.ps1 index 6bc6b2dbe9..0e6824f4ea 100644 --- a/src/AutoMapper/ApiCompat/PreBuild.ps1 +++ b/src/AutoMapper/ApiCompat/PreBuild.ps1 @@ -10,4 +10,4 @@ if($versionNumbers[1] -eq "0" -AND $versionNumbers[2] -eq "0") $oldVersion = $oldVersion.ToString() +".0.0" echo $oldVersion & ..\..\nuget install AutoMapper -Version $oldVersion -OutputDirectory ..\LastMajorVersionBinary -& copy ..\LastMajorVersionBinary\AutoMapper.$oldVersion\lib\net6.0\AutoMapper.dll ..\LastMajorVersionBinary +& copy ..\LastMajorVersionBinary\AutoMapper.$oldVersion\lib\net*.0\AutoMapper.dll ..\LastMajorVersionBinary diff --git a/src/AutoMapper/AutoMapper.csproj b/src/AutoMapper/AutoMapper.csproj index 0757bf73ed..adb0aeb4ab 100644 --- a/src/AutoMapper/AutoMapper.csproj +++ b/src/AutoMapper/AutoMapper.csproj @@ -3,7 +3,7 @@ A convention-based object-object mapper. A convention-based object-object mapper. - net8.0 + net8.0 true AutoMapper ..\..\AutoMapper.snk @@ -39,7 +39,7 @@ - + diff --git a/src/AutoMapper/Internal/ReflectionHelper.cs b/src/AutoMapper/Internal/ReflectionHelper.cs index 7d788f0db2..48d0c45877 100644 --- a/src/AutoMapper/Internal/ReflectionHelper.cs +++ b/src/AutoMapper/Internal/ReflectionHelper.cs @@ -88,7 +88,7 @@ public static MemberInfo FindProperty(LambdaExpression lambdaExpression) { switch (expressionToCheck) { - case MemberExpression { Member: var member, Expression: { NodeType: ExpressionType.Parameter or ExpressionType.Convert } }: + case MemberExpression { Member: var member, Expression.NodeType: ExpressionType.Parameter or ExpressionType.Convert }: return member; case UnaryExpression { Operand: var operand }: expressionToCheck = operand; diff --git a/src/Benchmark/Benchmark.csproj b/src/Benchmark/Benchmark.csproj index 15056f7dcd..338eb6067b 100644 --- a/src/Benchmark/Benchmark.csproj +++ b/src/Benchmark/Benchmark.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 Exe diff --git a/src/IntegrationTests/AutoMapper.IntegrationTests.csproj b/src/IntegrationTests/AutoMapper.IntegrationTests.csproj index 5c170ccb7f..910df81488 100644 --- a/src/IntegrationTests/AutoMapper.IntegrationTests.csproj +++ b/src/IntegrationTests/AutoMapper.IntegrationTests.csproj @@ -1,18 +1,18 @@  - net8.0 + net9.0 $(NoWarn);618 - + - - - + + + diff --git a/src/TestApp/TestApp.csproj b/src/TestApp/TestApp.csproj index 1aa0ba2168..43d1d11683 100644 --- a/src/TestApp/TestApp.csproj +++ b/src/TestApp/TestApp.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 TestApp Exe enable @@ -13,7 +13,7 @@ - + diff --git a/src/UnitTests/AutoMapper.UnitTests.csproj b/src/UnitTests/AutoMapper.UnitTests.csproj index c0a536086c..8c96508838 100644 --- a/src/UnitTests/AutoMapper.UnitTests.csproj +++ b/src/UnitTests/AutoMapper.UnitTests.csproj @@ -1,16 +1,16 @@  - net8.0 + net9.0 $(NoWarn);649;618 - - - + + +