Skip to content

Commit

Permalink
API-515 - [C# SDK] Downgrade .NET standard from 2.1 to 2.0 (#54)
Browse files Browse the repository at this point in the history
* .NET back to 2.0

* Dep updates
  • Loading branch information
Huib Piguillet authored Sep 7, 2021
1 parent 866846c commit 9c1ced4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Bynder/Sample/Bynder.Sample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Copyright>Copyright © Bynder</Copyright>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Sdk\Bynder.Sdk.csproj" />
Expand Down
21 changes: 14 additions & 7 deletions Bynder/Sdk/Api/Converters/TagsOrderByConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,20 @@ public bool CanConvert(Type typeToConvert)
/// </summary>
/// <param name="value">TagsOrderBy value</param>
/// <returns>converted string</returns>
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;
}
}
}
}
4 changes: 2 additions & 2 deletions Bynder/Sdk/Bynder.Sdk.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyVersion>2.2.4.0</AssemblyVersion>
<FileVersion>2.2.4.0</FileVersion>
<Company>Bynder</Company>
Expand Down Expand Up @@ -29,7 +29,7 @@ Fixed an incorrect type in the media response body (issue #48).</PackageReleaseN
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="NuGet.Build.Packaging" Version="0.2.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
8 changes: 4 additions & 4 deletions Bynder/Test/Bynder.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<Copyright>Copyright © Bynder</Copyright>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="3.0.2"><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PackageReference Include="coverlet.msbuild" Version="3.1.0"><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="Moq" Version="4.16.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
<PackageReference Include="Moq" Version="4.16.1" />
<PackageReference Include="Moq.Sequences" Version="2.2.1" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3"><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit 9c1ced4

Please sign in to comment.