From 9c1ced46a231e16bacf5900095918c1cc048009b Mon Sep 17 00:00:00 2001 From: Huib Piguillet Date: Tue, 7 Sep 2021 13:13:15 +0200 Subject: [PATCH] API-515 - [C# SDK] Downgrade .NET standard from 2.1 to 2.0 (#54) * .NET back to 2.0 * Dep updates --- Bynder/Sample/Bynder.Sample.csproj | 2 +- .../Api/Converters/TagsOrderByConverter.cs | 21 ++++++++++++------- Bynder/Sdk/Bynder.Sdk.csproj | 4 ++-- Bynder/Test/Bynder.Test.csproj | 8 +++---- 4 files changed, 21 insertions(+), 14 deletions(-) diff --git a/Bynder/Sample/Bynder.Sample.csproj b/Bynder/Sample/Bynder.Sample.csproj index d37f031..f525c5c 100644 --- a/Bynder/Sample/Bynder.Sample.csproj +++ b/Bynder/Sample/Bynder.Sample.csproj @@ -9,7 +9,7 @@ Copyright © Bynder - + diff --git a/Bynder/Sdk/Api/Converters/TagsOrderByConverter.cs b/Bynder/Sdk/Api/Converters/TagsOrderByConverter.cs index dc60766..d92276f 100644 --- a/Bynder/Sdk/Api/Converters/TagsOrderByConverter.cs +++ b/Bynder/Sdk/Api/Converters/TagsOrderByConverter.cs @@ -20,13 +20,20 @@ public bool CanConvert(Type typeToConvert) /// /// TagsOrderBy value /// converted string - public string Convert(object value) => value switch + public string Convert(object value) { - TagsOrderBy.TagAscending => "tag asc", - TagsOrderBy.TagDescending => "tag desc", - TagsOrderBy.MediaCountAscending => "mediaCount asc", - TagsOrderBy.MediaCountDescending => "mediaCount desc", - _ => null, - }; + switch (value) { + case TagsOrderBy.TagAscending: + return "tag asc"; + case TagsOrderBy.TagDescending: + return "tag desc"; + case TagsOrderBy.MediaCountAscending: + return "mediaCount asc"; + case TagsOrderBy.MediaCountDescending: + return "mediaCount desc"; + default: + return null; + } + } } } diff --git a/Bynder/Sdk/Bynder.Sdk.csproj b/Bynder/Sdk/Bynder.Sdk.csproj index 6fa2def..732288d 100644 --- a/Bynder/Sdk/Bynder.Sdk.csproj +++ b/Bynder/Sdk/Bynder.Sdk.csproj @@ -1,6 +1,6 @@ - netstandard2.1 + netstandard2.0 2.2.4.0 2.2.4.0 Bynder @@ -29,7 +29,7 @@ Fixed an incorrect type in the media response body (issue #48). - + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/Bynder/Test/Bynder.Test.csproj b/Bynder/Test/Bynder.Test.csproj index 72d6412..21ee132 100644 --- a/Bynder/Test/Bynder.Test.csproj +++ b/Bynder/Test/Bynder.Test.csproj @@ -9,13 +9,13 @@ Copyright © Bynder - runtime; build; native; contentfiles; analyzers; buildtransitive + runtime; build; native; contentfiles; analyzers; buildtransitive all - - + + - + runtime; build; native; contentfiles; analyzers; buildtransitive all