diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 23b30ba553..9acdc59af4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -5,8 +5,10 @@ on:
branches:
- master
pull_request:
- branches:
- - master
+env:
+ DOTNET_NOLOGO: true
+ DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
+ MINVERBUILDMETADATA: build.${{ github.run_id }}.${{ github.run_attempt}}
permissions:
contents: read
concurrency:
@@ -19,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
@@ -44,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
@@ -57,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 }}
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
+
+