Skip to content

Commit

Permalink
Updated to latest supported .Net Framework
Browse files Browse the repository at this point in the history
  • Loading branch information
egelke committed Dec 22, 2021
1 parent 8063dc5 commit 3540401
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -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;
}
}

Expand Down
11 changes: 5 additions & 6 deletions eid-module/eid-module.csproj
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp2.0;net452</TargetFrameworks>
<TargetFrameworks>netcoreapp2.0;net462</TargetFrameworks>
<RootNamespace>Egelke.Eid.Client</RootNamespace>
<SignAssembly>true</SignAssembly>
<DelaySign>false</DelaySign>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AssemblyName>Egelke.Eid.Client</AssemblyName>
<Version>1.1.0</Version>
<Version>1.2.0</Version>
<Authors>Egelke BVBA</Authors>
<Company>Egelke BVBA</Company>
<Description>.net client for the Belgium eID Smart Cards.
Complements the reading of the files (certs, TLV and signatures).</Description>
<PackageReleaseNotes>Process address and identity file (only common fields of the latter)
Added small (eID-Viewer) inspired demo app.
</PackageReleaseNotes>
<Copyright>Copyright © Egelke BVBA 2014-2020</Copyright>
<PackageReleaseNotes>Upgrade to latest supported .Net Framework
Added support for latest document types</PackageReleaseNotes>
<Copyright>Copyright © Egelke BVBA 2014-2021</Copyright>
<LicenseUrl>http://www.gnu.org/licenses/lgpl.html</LicenseUrl>
<PackageProjectUrl>https://github.com/egelke/eid</PackageProjectUrl>
<PackageTags>eID Belgium</PackageTags>
Expand Down
2 changes: 1 addition & 1 deletion eid-test/eid-test.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net461;netcoreapp3.1;net5.0</TargetFrameworks>
<TargetFrameworks>net462;netcoreapp3.1;net5.0</TargetFrameworks>
<RootNamespace>Egelke.Eid.Client.Test</RootNamespace>
<DebugType>Full</DebugType>
<IsPackable>false</IsPackable>
Expand Down
5 changes: 3 additions & 2 deletions eid.sln
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3540401

Please sign in to comment.