From 3540401e92b95cc6b9d522e8972eca98e4025d34 Mon Sep 17 00:00:00 2001 From: Egelke BVBA Date: Wed, 22 Dec 2021 10:27:57 +0100 Subject: [PATCH] Updated to latest supported .Net Framework --- README.md | 16 ++++++++-------- eid-module/eid-module.csproj | 11 +++++------ eid-test/eid-test.csproj | 2 +- eid.sln | 5 +++-- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index c0ddc96..5ce5c0a 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,30 @@ .Net eID Client === -Native .Net client of the Belgium eID card, directly uses the WinSCard library of Windows. It allows to read the files ont the Belgium eID card. +Native .Net client of the Belgium eID card, directly uses the WinSCard library of Windows. It allows to read the files on the Belgium eID card. Installing --- Install the Egelke.Eid.Client NuGet package: - PM> Install-Package Egelke.Eid.Client -Pre + PM> Install-Package Egelke.Eid.Client Prerequisites --- * Compatible reader * Fedict minidriver (part of eID Middleware) -* Resent windows (tested on Windows 8.1) +* Resent windows (tested on Windows 11) Getting Started --- using (Readers readers = new Readers(ReaderScope.User)) { - readers.EidCardRequest += readers_EidCardRequest; - readers.EidCardRequestCancellation += readers_EidCardRequestCancellation; - EidCard target = readers.WaitForEid(new TimeSpan(0, 5, 0)); - using (target) + EidCard eid = (EidCard)readers.ListCards().Where(c => c is EidCard).FirstOrDefault(); + using (eid) { - X509Certificate2 auth = target.ReadCertificate(CertificateId.Authentication); + eid.Open(); + X509Certificate2 auth = eid.AuthCert; + Model.Identity identity = eid.Identity; } } diff --git a/eid-module/eid-module.csproj b/eid-module/eid-module.csproj index 51ed8ac..7708844 100644 --- a/eid-module/eid-module.csproj +++ b/eid-module/eid-module.csproj @@ -1,21 +1,20 @@  - netcoreapp2.0;net452 + netcoreapp2.0;net462 Egelke.Eid.Client true false true Egelke.Eid.Client - 1.1.0 + 1.2.0 Egelke BVBA Egelke BVBA .net client for the Belgium eID Smart Cards. Complements the reading of the files (certs, TLV and signatures). - Process address and identity file (only common fields of the latter) -Added small (eID-Viewer) inspired demo app. - - Copyright © Egelke BVBA 2014-2020 + Upgrade to latest supported .Net Framework +Added support for latest document types + Copyright © Egelke BVBA 2014-2021 http://www.gnu.org/licenses/lgpl.html https://github.com/egelke/eid eID Belgium diff --git a/eid-test/eid-test.csproj b/eid-test/eid-test.csproj index 728f8d1..4681f76 100644 --- a/eid-test/eid-test.csproj +++ b/eid-test/eid-test.csproj @@ -1,7 +1,7 @@  - net461;netcoreapp3.1;net5.0 + net462;netcoreapp3.1;net5.0 Egelke.Eid.Client.Test Full false diff --git a/eid.sln b/eid.sln index 683d5c3..e37e39c 100644 --- a/eid.sln +++ b/eid.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29926.136 +# Visual Studio Version 17 +VisualStudioVersion = 17.1.31911.260 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "eid-module", "eid-module\eid-module.csproj", "{398E1A45-BA82-453F-A169-AA87D78C6B1D}" EndProject @@ -11,6 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution ProjectSection(SolutionItems) = preProject .gitignore = .gitignore debug.snk = debug.snk + README.md = README.md release.snk = release.snk EndProjectSection EndProject