From 734d20b7e8464f15ee9df07b158bc122b2c2aab9 Mon Sep 17 00:00:00 2001 From: Henk Kin Date: Tue, 6 Feb 2024 09:56:19 +0100 Subject: [PATCH 1/2] Updated to Automapper 13.0 Changed CI/CD pipeline to net8.0 for tests Changed target framework of library to net6.0 Updated other nuget packages to latest stable version Updated documentation --- .github/workflows/ci.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- AutoMapper.Extensions.EnumMapping.sln | 4 ++-- README.md | 2 -- .../AutoMapper.Extensions.EnumMapping.Tests.csproj | 13 +++++++------ .../AutoMapper.Extensions.EnumMapping.csproj | 8 ++++---- 6 files changed, 17 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abec4c1..ed62f04 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,10 +17,10 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Use .NET 6 + - name: Use .NET 8 uses: actions/setup-dotnet@v1 with: - dotnet-version: '6.0.x' + dotnet-version: '8.0.x' - name: Build and Test run: ./Build.ps1 shell: pwsh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 124b9c8..8b040b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,10 +14,10 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Use .NET 6 + - name: Use .NET 8 uses: actions/setup-dotnet@v1 with: - dotnet-version: '6.0.x' + dotnet-version: '8.0.x' - name: Build and Test run: ./Build.ps1 shell: pwsh diff --git a/AutoMapper.Extensions.EnumMapping.sln b/AutoMapper.Extensions.EnumMapping.sln index df886c7..29be6cf 100644 --- a/AutoMapper.Extensions.EnumMapping.sln +++ b/AutoMapper.Extensions.EnumMapping.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29519.87 +# Visual Studio Version 17 +VisualStudioVersion = 17.8.34511.84 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoMapper.Extensions.EnumMapping", "src\AutoMapper.Extensions.EnumMapping\AutoMapper.Extensions.EnumMapping.csproj", "{9D0DA173-4F23-4A38-B636-DD5D097CFE35}" EndProject diff --git a/README.md b/README.md index b6a1ae4..20eaebc 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,6 @@ The AutoMapper.Extensions.EnumMapping library gives you control about your enum This library supports mapping enums values like properties. -This library is Cross-platform, supporting `netstandard2.0` and `net461`. - ### Dependencies - [AutoMapper](https://www.nuget.org/packages/AutoMapper/) (from version 10.0) diff --git a/src/AutoMapper.Extensions.EnumMapping.Tests/AutoMapper.Extensions.EnumMapping.Tests.csproj b/src/AutoMapper.Extensions.EnumMapping.Tests/AutoMapper.Extensions.EnumMapping.Tests.csproj index 51e81e5..2efc2a2 100644 --- a/src/AutoMapper.Extensions.EnumMapping.Tests/AutoMapper.Extensions.EnumMapping.Tests.csproj +++ b/src/AutoMapper.Extensions.EnumMapping.Tests/AutoMapper.Extensions.EnumMapping.Tests.csproj @@ -1,20 +1,21 @@  - net6.0 + net8.0 false true + - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/AutoMapper.Extensions.EnumMapping/AutoMapper.Extensions.EnumMapping.csproj b/src/AutoMapper.Extensions.EnumMapping/AutoMapper.Extensions.EnumMapping.csproj index b1fe87b..4894567 100644 --- a/src/AutoMapper.Extensions.EnumMapping/AutoMapper.Extensions.EnumMapping.csproj +++ b/src/AutoMapper.Extensions.EnumMapping/AutoMapper.Extensions.EnumMapping.csproj @@ -5,7 +5,7 @@ Henk Kin Convention-based enum value mapping extension for AutoMapper. Convention-based enum value mapping extension for AutoMapper. - netstandard2.1 + net6.0 true AutoMapper.Extensions.EnumMapping ..\..\AutoMapper.snk @@ -26,12 +26,12 @@ - + - - + + From d34c5ee6331e5b5dfe5786705496d3361ae182d6 Mon Sep 17 00:00:00 2001 From: Henk Kin Date: Tue, 6 Feb 2024 10:28:20 +0100 Subject: [PATCH 2/2] Removed explicit .net version from ci/cd pipelines --- .github/workflows/ci.yml | 4 ---- .github/workflows/release.yml | 4 ---- 2 files changed, 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed62f04..d17934b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,10 +17,6 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Use .NET 8 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '8.0.x' - name: Build and Test run: ./Build.ps1 shell: pwsh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b040b7..30f1467 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,10 +14,6 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 - - name: Use .NET 8 - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '8.0.x' - name: Build and Test run: ./Build.ps1 shell: pwsh