Skip to content

Commit 5c2dc56

Browse files
Merge pull request #20 from Mastercard/update-the-version
Moving to the netstandard2.1 Building tests using .Net5
2 parents cf2971c + 78484bb commit 5c2dc56

File tree

4 files changed

+44
-6
lines changed

4 files changed

+44
-6
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ jobs:
1818
strategy:
1919
matrix:
2020
dotnet:
21-
- 8.0.201
21+
- 5.0.x
2222
include:
23-
- dotnet: 8.0.201
23+
- dotnet: 5.0.x
2424
mono: none
2525
TEST_PROJECT: $NETCORE_TEST_PROJECT
2626
steps:
2727
- name: Checkout code
2828
uses: actions/checkout@v2
29-
- name: Setup .NET 8
29+
- name: Setup .NET 5
3030
uses: actions/[email protected]
3131
with:
32-
dotnet-version: 8.0.201
33-
- name: Build using .NET 8
32+
dotnet-version: 5.0.x
33+
- name: Build using .NET 5
3434
run: >
3535
export PATH="$PATH:$HOME/.dotnet/tools"
3636

Mastercard.Developer.OAuth1Signer.Tests/Mastercard.Developer.OAuth1Signer.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net5</TargetFramework>
44
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
55
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
66
<ProjectGuid>{879DAE6D-71CA-4860-8253-1889597F584F}</ProjectGuid>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netcoreapp2.1</TargetFramework>
5+
<IsPackable>false</IsPackable>
6+
<Authors>Mastercard</Authors>
7+
<Company>Mastercard</Company>
8+
<!-- See: https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/strong-naming -->
9+
<SignAssembly>true</SignAssembly>
10+
<AssemblyOriginatorKeyFile>../Identity.snk</AssemblyOriginatorKeyFile>
11+
<AssemblyVersion>1.0.0.0</AssemblyVersion>
12+
<FileVersion>1.0.0.0</FileVersion>
13+
</PropertyGroup>
14+
15+
<ItemGroup>
16+
<PackageReference Include="coverlet.msbuild" Version="2.5.1">
17+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
18+
<PrivateAssets>all</PrivateAssets>
19+
</PackageReference>
20+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
21+
<PackageReference Include="MSTest.TestAdapter" Version="2.1.2" />
22+
<PackageReference Include="MSTest.TestFramework" Version="2.1.2" />
23+
</ItemGroup>
24+
25+
<ItemGroup>
26+
<ProjectReference Include="..\Mastercard.Developer.OAuth1Signer.RestSharp\Mastercard.Developer.OAuth1Signer.RestSharp.csproj" />
27+
<ProjectReference Include="..\Mastercard.Developer.OAuth1Signer.RestSharpV2\Mastercard.Developer.OAuth1Signer.RestSharpV2.csproj" />
28+
<ProjectReference Include="..\Mastercard.Developer.OAuth1Signer.Core\Mastercard.Developer.OAuth1Signer.Core.csproj" />
29+
</ItemGroup>
30+
31+
<ItemGroup>
32+
<None Update="_Resources\test_key_container.p12">
33+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
34+
</None>
35+
</ItemGroup>
36+
37+
</Project>

Mastercard.Developer.OAuth1Signer.Tests/Tests/Utils/TestUtils.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ internal static RSA GetTestSigningKey() => AuthenticationUtils.LoadSigningKey(
1616
);
1717
}
1818
}
19+

0 commit comments

Comments
 (0)