Skip to content

Commit

Permalink
Merge pull request #23 from difi/dotnetstandard2.0
Browse files Browse the repository at this point in the history
.netstandard2.0
  • Loading branch information
johnksv authored May 7, 2020
2 parents 959f577 + 59f3824 commit b1df2db
Show file tree
Hide file tree
Showing 9 changed files with 87 additions and 63 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ git:

matrix:
include:
- dotnet: 2.2.104
- dotnet: 3.1.101
mono: none
env: DOTNETCORE=2
env: DOTNETCORE=3

before_install:
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static X509Certificate2 GetEnhetstesterSelvsignertSertifikat()

public static X509Certificate2 GetPostenCertificate()
{
return GetCertificate("UnitTests", "PostenNorgeAs.cer");
return GetFunksjoneltTestmiljøMottakerSertifikatOppslagstjenesten();
}

internal static X509Certificate2 GetAvsenderEnhetstesterSertifikat()
Expand Down Expand Up @@ -107,4 +107,4 @@ public static List<X509Certificate2> GetDifiProductionChain()
}
}
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
-----BEGIN CERTIFICATE-----
MIIE1DCCA7ygAwIBAgILA+jTV+nCPcYeg9wwDQYJKoZIhvcNAQELBQAwSzELMAkG
MIIE8zCCA9ugAwIBAgILEDT7PWQIyW3oBSUwDQYJKoZIhvcNAQELBQAwSzELMAkG
A1UEBhMCTk8xHTAbBgNVBAoMFEJ1eXBhc3MgQVM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k
fjihHsNZVNNKMA4GA1UdDwEB/wQEAwIGQDAdBgNVHSUEFjAUBggrBgEFBQcDAgYI
KwYBBQUHAwQwFQYDVR0gBA4wDDAKBghghEIBGgEDAjCBpQYDVR0fBIGdMIGaMC+g
LaArhilodHRwOi8vY3JsLmJ1eXBhc3Mubm8vY3JsL0JQQ2xhc3MzQ0EzLmNybDBn
oGWgY4ZhbGRhcDovL2xkYXAuYnV5cGFzcy5uby9kYz1CdXlwYXNzLGRjPU5PLENO
PUJ1eXBhc3MlMjBDbGFzcyUyMDMlMjBDQSUyMDM/Y2VydGlmaWNhdGVSZXZvY2F0
aW9uTGlzdDB6BggrBgEFBQcBAQRuMGwwMwYIKwYBBQUHMAGGJ2h0dHA6Ly9vY3Nw
LmJ1eXBhc3Mubm8vb2NzcC9CUENsYXNzM0NBMzA1BggrBgEFBQcwAoYpaHR0cDov
L2NydC5idXlwYXNzLm5vL2NydC9CUENsYXNzM0NBMy5jZXIwDQYJKoZIhvcNAQEL
BQADggEBAIGWq/gewM1nMhbnhw1ZsWXp9hD3o6YgfgcX8GjweMSO54CwKl2Dlp8c
1/KHo2sEUelosHOYwO006hw6qg8COVrBRbMvLYts8nuM2GHudPcEQIYoMo0H4QQn
/wJ09O+ipUEHTmKOIkyFyxrvrftItO61sF0we1aE7CjrR8ItYUXy82dtR6UXJK0j
lirfva5XAB2L4Fspsg21iwqC+H75O/K5mJTtnlelArufe7iv5Uy4A9kGXiy/SfAy
cnzPnTypPL+Jwc9SOX4qIodVY55sq29XWklgSj/hCCIAiR4LNg5M1cN0IAIIQdPw
qE+G9vSLLyzSyO+jHwOgSXiEohE5cUk=
-----END CERTIFICATE-----
55 changes: 30 additions & 25 deletions ...ility.Resources/Certificate/Data/UnitTests/testmottakersertifikatFraOppslagstjenesten.pem
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
-----BEGIN CERTIFICATE-----
MIIE7jCCA9agAwIBAgIKGBZrmEgzTHzeJjANBgkqhkiG9w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oySSqLwTdH4iRt+fF6PwTtd7bz3QgEJgU2V/
3/jIOfcgH49H1JXNaNSWPZw/gs6vRobIuoozLOfW0dTdXpmrks/9wIBFgK0hwm6G
6JhP8zj6Iyd6lFEDyTTMx85bqj0yQlWnpV5ngwHzwLYB3L0NgNuiYp5Dg1/QH9j/
19kLE99HhfLzSiOKgpRC5QP7Lvj76Gz6TpklqF3A6iUFZuJ6gWU/2uTloAmclDc4
LaJtvjaKcSEzf0TbFBe+b7SeFSAx7MvHt0NANDa4X31DpP4XG262w5ScpNJferdP
Or9IVNyjAA==
-----END CERTIFICATE-----
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>Difi.Felles.Utility.Resources</RootNamespace>
<ProjectGuid>{D7E13B5F-026B-41CE-8250-C9BFBCE82E43}</ProjectGuid>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
Expand Down Expand Up @@ -36,7 +36,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Digipost.Api.Client.Shared" Version="5.0.0-beta.2" />
<PackageReference Include="Digipost.Api.Client.Shared" Version="6.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)' == 'Debug'">
Expand Down
6 changes: 3 additions & 3 deletions Difi.Felles.Utility.Tester/Difi.Felles.Utility.Tester.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>Difi.Felles.Utility.Tester</RootNamespace>
<ProjectGuid>{8DB9B89B-DA70-419A-9725-F9CAD57E2782}</ProjectGuid>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
Expand Down Expand Up @@ -57,8 +57,8 @@
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Digipost.Api.Client.Shared" Version="5.0.0-beta.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="Digipost.Api.Client.Shared" Version="6.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="xunit.assert" Version="2.4.1" />
<PackageReference Include="xunit.core" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
Expand Down
6 changes: 3 additions & 3 deletions Difi.Felles.Utility/Difi.Felles.Utility.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>Difi.Felles.Utility</RootNamespace>
<ProjectGuid>{A66AC380-1D57-4DBD-9FD3-839919FBAF02}</ProjectGuid>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
Expand Down Expand Up @@ -53,8 +53,8 @@
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Digipost.Api.Client.Shared" Version="5.0.0-beta.2" />
<PackageReference Include="System.Security.Cryptography.Xml" Version="4.5.0" />
<PackageReference Include="Digipost.Api.Client.Shared" Version="6.0.0" />
<PackageReference Include="System.Security.Cryptography.Xml" Version="4.7.0" />
</ItemGroup>

</Project>

0 comments on commit b1df2db

Please sign in to comment.