From e229bf28ad65020675d345a0e18965176f9c44e0 Mon Sep 17 00:00:00 2001 From: Lars Date: Thu, 24 Oct 2024 23:04:26 +0200 Subject: [PATCH] add roslyn 4.11 as target (#1555) --- .csharpierrc.yaml | 5 +++-- .../Riok.Mapperly.Benchmarks.csproj | 10 +++++----- build/package.sh | 2 +- src/Riok.Mapperly/Riok.Mapperly.Roslyn4.11.props | 7 +++++++ src/Riok.Mapperly/Riok.Mapperly.csproj | 8 ++++---- test/Riok.Mapperly.Tests/Riok.Mapperly.Tests.csproj | 2 +- 6 files changed, 21 insertions(+), 13 deletions(-) create mode 100644 src/Riok.Mapperly/Riok.Mapperly.Roslyn4.11.props diff --git a/.csharpierrc.yaml b/.csharpierrc.yaml index d9b5ea2bb2..63bba02ace 100644 --- a/.csharpierrc.yaml +++ b/.csharpierrc.yaml @@ -7,8 +7,9 @@ preprocessorSymbolSets: - "DEBUG_SOURCE_GENERATOR" - "SYSTEM_PRIVATE_CORELIB" - "NETSTANDARD2_0" - - "ROSLYN4_4_OR_GREATER" - - "ROSLYN4_7_OR_GREATER" - "NET6_0_OR_GREATER" - "NET7_0_OR_GREATER" - "NET8_0_OR_GREATER" + - "NET9_0_OR_GREATER" + - "ROSLYN4_4_OR_GREATER" + - "ROSLYN4_7_OR_GREATER" diff --git a/benchmarks/Riok.Mapperly.Benchmarks/Riok.Mapperly.Benchmarks.csproj b/benchmarks/Riok.Mapperly.Benchmarks/Riok.Mapperly.Benchmarks.csproj index 126a3a1393..beb52efb02 100644 --- a/benchmarks/Riok.Mapperly.Benchmarks/Riok.Mapperly.Benchmarks.csproj +++ b/benchmarks/Riok.Mapperly.Benchmarks/Riok.Mapperly.Benchmarks.csproj @@ -8,11 +8,11 @@ - - - - - + + + + + all runtime; build; native; contentfiles; analyzers diff --git a/build/package.sh b/build/package.sh index 56391aa71c..89254a4bb6 100755 --- a/build/package.sh +++ b/build/package.sh @@ -5,7 +5,7 @@ set -Eeuo pipefail # pack a nupkg for each roslyn version that is supported by Mapperly # and merge them together into one nupkg -roslyn_versions=('4.0' '4.4' '4.5' '4.7') +roslyn_versions=('4.0' '4.4' '4.5' '4.7' '4.11') RELEASE_VERSION=${RELEASE_VERSION:-"0.0.1-dev.$(date +%s)"} RELEASE_NOTES=${RELEASE_NOTES:-''} diff --git a/src/Riok.Mapperly/Riok.Mapperly.Roslyn4.11.props b/src/Riok.Mapperly/Riok.Mapperly.Roslyn4.11.props new file mode 100644 index 0000000000..5fc7eb6a58 --- /dev/null +++ b/src/Riok.Mapperly/Riok.Mapperly.Roslyn4.11.props @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/Riok.Mapperly/Riok.Mapperly.csproj b/src/Riok.Mapperly/Riok.Mapperly.csproj index ca60046c22..064ed195a0 100644 --- a/src/Riok.Mapperly/Riok.Mapperly.csproj +++ b/src/Riok.Mapperly/Riok.Mapperly.csproj @@ -16,10 +16,10 @@ Mapper SourceGenerator logo.png - - 4.7 - $(DefineConstants);ROSLYN4_4_OR_GREATER - $(DefineConstants);ROSLYN4_7_OR_GREATER + + 4.11 + $(DefineConstants);ROSLYN4_4_OR_GREATER + $(DefineConstants);ROSLYN4_7_OR_GREATER diff --git a/test/Riok.Mapperly.Tests/Riok.Mapperly.Tests.csproj b/test/Riok.Mapperly.Tests/Riok.Mapperly.Tests.csproj index e9286e716d..57db2b5e0e 100644 --- a/test/Riok.Mapperly.Tests/Riok.Mapperly.Tests.csproj +++ b/test/Riok.Mapperly.Tests/Riok.Mapperly.Tests.csproj @@ -1,7 +1,7 @@ - +