Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Commit b3de3d0

Browse files
Mihkel Kivisildmrts
authored andcommitted
Updated example to .Net 8 and updated dependencies
WE2-888 Signed-off-by: Mihkel Kivisild [email protected]
1 parent d788cbd commit b3de3d0

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

.github/workflows/dotnet-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111

1212
- name: Setup dotnet
13-
uses: actions/setup-dotnet@v1
13+
uses: actions/setup-dotnet@v4
1414
with:
15-
dotnet-version: 6.0.x # SDK Version to use.
15+
dotnet-version: 8.0.x # SDK Version to use.
1616

1717
- name: Cache Nuget packages
18-
uses: actions/cache@v2
18+
uses: actions/cache@v4
1919
with:
2020
path: ~/.nuget/packages
2121
# Look to see if there is a cache hit for the corresponding requirements file

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Set up the `libdigidocpp` library as follows:
4848

4949
1. Install the _libdigidocpp-3.17.1.msi_ package or higher. The installation packages are available from [https://github.com/open-eid/libdigidocpp/releases](https://github.com/open-eid/libdigidocpp/releases).
5050
2. Copy the C# source files from the `libdigidocpp` installation folder `include\digidocpp_csharp` to the `src\WebEid.AspNetCore.Example\DigiDoc` folder.
51-
3. Copy all files from either the `x64` subfolder of the `libdigidocpp` installation folder to the example application build output folder `bin\...\net60` (after building, see next step). When building custom applications, choose `x64` if your application is 64-bit and `x86` if it is 32-bit.
51+
3. Copy all files from either the `x64` subfolder of the `libdigidocpp` installation folder to the example application build output folder `bin\...\net8.0` (after building, see next step). When building custom applications, choose `x64` if your application is 64-bit and `x86` if it is 32-bit.
5252
4. When running in the `Development` profile, create an empty file named `EE_T.xml` for TSL cache as described in the [_Using test TSL lists_](https://github.com/open-eid/libdigidocpp/wiki/Using-test-TSL-lists#preconditions) section of the `libdigidocpp` wiki.
5353

5454
#### For Ubuntu Linux
@@ -79,7 +79,7 @@ Set up the `libdigidocpp` library as follows:
7979

8080
1. Install the _libdigidocpp-3.17.1.pkg_ package or higher. The installation packages are available from [https://github.com/open-eid/libdigidocpp/releases](https://github.com/open-eid/libdigidocpp/releases).
8181
2. Copy the C# source files from `/Library/libdigidocpp/include/digidocpp_csharp` directory to `src/WebEid.AspNetCore.Example/DigiDoc` directory.
82-
3. Go to `src/WebEid.AspNetCore.Example/bin/.../net60` directory and create symbolic link to `/Library/libdigidocpp/lib/libdigidoc_csharp.dylib` library:
82+
3. Go to `src/WebEid.AspNetCore.Example/bin/.../net8.0` directory and create symbolic link to `/Library/libdigidocpp/lib/libdigidoc_csharp.dylib` library:
8383
```cmd
8484
ln -s /Library/libdigidocpp/lib/libdigidoc_csharp.dylib
8585
```

src/.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
LICENSE
2525
README.md
2626

27-
!WebEid.AspNetCore.Example/bin/Release/net6.0/publish/
27+
!WebEid.AspNetCore.Example/bin/Release/net8.0/publish/

src/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# We're using .NET 6 now, but when we migrate to .NET 8 in the future, we should use chiseled images.
2-
FROM mcr.microsoft.com/dotnet/aspnet:6.0-jammy
1+
# In the future, we should use chiseled images.
2+
FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy
33

44
WORKDIR /app
55

@@ -13,7 +13,7 @@ RUN echo "deb [signed-by=/usr/share/keyrings/ria-repository.gpg] https://install
1313
apt-get clean && \
1414
rm -rf /var/lib/apt/lists
1515

16-
COPY ./WebEid.AspNetCore.Example/bin/Release/net6.0/publish/ .
16+
COPY ./WebEid.AspNetCore.Example/bin/Release/net8.0/publish/ .
1717

1818
ENV ASPNETCORE_ENVIRONMENT=Production
1919

src/WebEid.AspNetCore.Example/WebEid.AspNetCore.Example.csproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<UserSecretsId>aspnet-web_eid_asp_dotnet_example-3FF31439-FDC0-4164-B154-03E005FE96CD</UserSecretsId>
66
<RootNamespace>WebEid.AspNetCore.Example</RootNamespace>
77
<CopyRefAssembliesToPublishDirectory>false</CopyRefAssembliesToPublishDirectory>
@@ -11,14 +11,14 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.4" />
15-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.4" NoWarn="NU1605" />
16-
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.4" NoWarn="NU1605" />
17-
<PackageReference Include="Microsoft.Identity.Web" Version="1.24.0" />
18-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.24.0" />
19-
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.15.1" />
20-
<PackageReference Include="System.Runtime.Caching" Version="6.0.0" />
21-
<PackageReference Include="System.Text.Json" Version="6.0.3" />
14+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.6" />
15+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.6" NoWarn="NU1605" />
16+
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.6" NoWarn="NU1605" />
17+
<PackageReference Include="Microsoft.Identity.Web" Version="2.19.1" />
18+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.19.1" />
19+
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.20.1" />
20+
<PackageReference Include="System.Runtime.Caching" Version="8.0.0" />
21+
<PackageReference Include="System.Text.Json" Version="8.0.3" />
2222
<PackageReference Include="WebEid.Security" Version="1.1.0" />
2323
</ItemGroup>
2424

0 commit comments

Comments
 (0)