From fafa05580505c5b67d7279e464d78a5778c85af7 Mon Sep 17 00:00:00 2001 From: Jimmy Bogard Date: Wed, 30 Jul 2025 15:19:16 -0500 Subject: [PATCH 1/3] Adding direct .NET 4.x support --- src/AutoMapper/AutoMapper.csproj | 6 +++++- src/IntegrationTests/AutoMapper.IntegrationTests.csproj | 8 ++++++-- src/UnitTests/AutoMapper.UnitTests.csproj | 9 ++++++--- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/AutoMapper/AutoMapper.csproj b/src/AutoMapper/AutoMapper.csproj index cac334546a..b49d8b327e 100644 --- a/src/AutoMapper/AutoMapper.csproj +++ b/src/AutoMapper/AutoMapper.csproj @@ -29,6 +29,10 @@ --exclude-non-browsable --exclude-compiler-generated + + $(TargetFrameworks);net462 + + @@ -40,7 +44,7 @@ - + diff --git a/src/IntegrationTests/AutoMapper.IntegrationTests.csproj b/src/IntegrationTests/AutoMapper.IntegrationTests.csproj index aa49aa17f8..72b864934f 100644 --- a/src/IntegrationTests/AutoMapper.IntegrationTests.csproj +++ b/src/IntegrationTests/AutoMapper.IntegrationTests.csproj @@ -1,11 +1,15 @@  - net9.0 + net9.0 $(NoWarn);618 ..\..\AutoMapper.snk true - true + + + + true + $(TargetFrameworks);net462 diff --git a/src/UnitTests/AutoMapper.UnitTests.csproj b/src/UnitTests/AutoMapper.UnitTests.csproj index a8f7f95582..31e14ffddd 100644 --- a/src/UnitTests/AutoMapper.UnitTests.csproj +++ b/src/UnitTests/AutoMapper.UnitTests.csproj @@ -1,14 +1,17 @@  - net9.0 - net481;net9.0 + net9.0 $(NoWarn);649;618 ..\..\AutoMapper.snk true - true + + true + $(TargetFrameworks);net462 + + From e7152f247fe13d943c55fb0732c0cf315522f54f Mon Sep 17 00:00:00 2001 From: Jimmy Bogard Date: Wed, 30 Jul 2025 15:46:17 -0500 Subject: [PATCH 2/3] Fixing minver --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23b30ba553..c5bc58380e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,8 +5,6 @@ on: branches: - master pull_request: - branches: - - master permissions: contents: read concurrency: From c215fa766da61840297fb1040021eecb0c882eed Mon Sep 17 00:00:00 2001 From: Jimmy Bogard Date: Fri, 1 Aug 2025 13:42:11 -0500 Subject: [PATCH 3/3] Only pushing to feed on master branch --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5bc58380e..9acdc59af4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,10 @@ on: branches: - master pull_request: +env: + DOTNET_NOLOGO: true + DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true + MINVERBUILDMETADATA: build.${{ github.run_id }}.${{ github.run_attempt}} permissions: contents: read concurrency: @@ -17,7 +21,7 @@ jobs: runs-on: windows-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v4.2.0 with: fetch-depth: 0 - name: Setup dotnet @@ -42,7 +46,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v4.2.0 with: fetch-depth: 0 - name: Setup dotnet @@ -55,6 +59,7 @@ jobs: run: ./Build.ps1 shell: pwsh - name: Push to MyGet + if: github.ref == 'refs/heads/master' env: NUGET_URL: https://f.feedz.io/lucky-penny-software/automapper/nuget/index.json NUGET_API_KEY: ${{ secrets.FEEDZIO_ACCESS_TOKEN }}