Skip to content

Commit

Permalink
Merge branch 'development' of https://github.com/mattosaurus/PgpCore
Browse files Browse the repository at this point in the history
…into development
  • Loading branch information
mattosaurus committed Oct 16, 2020
2 parents 0a45713 + 3ea7c67 commit 2fdec6a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion PgpCore.Tests/PgpCore.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFrameworks>net472;netcoreapp3.1</TargetFrameworks>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
11 changes: 11 additions & 0 deletions PgpCore.Tests/UnitTests/UnitTestsAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ namespace PgpCore.Tests
{
public class UnitTestsAsync
{
private static class File
{
public static FileStream Create(string path) => System.IO.File.Create(path);
public static bool Exists(string path) => System.IO.File.Exists(path);
#if NETFRAMEWORK
public static Task<string> ReadAllTextAsync(string path) => Task.FromResult(System.IO.File.ReadAllText(path));
#else
public static Task<string> ReadAllTextAsync(string path) => System.IO.File.ReadAllTextAsync(path);
#endif
}

[Fact]
public async Task GenerateKeyAsync_CreatePublicPrivateKeyFiles()
{
Expand Down
4 changes: 2 additions & 2 deletions PgpCore/PgpCore.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.1;netcoreapp2.2;netcoreapp3.1</TargetFrameworks>
<Description>.NET Standard and Core class library for using PGP</Description>
<TargetFramework>netstandard2.0</TargetFramework>
<Description>.NET Standard class library for using PGP</Description>
<Authors>mattosaurus</Authors>
<Company />
<Product>PgpCore</Product>
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

A .NET Core class library for using PGP.

This is based on <a href="https://github.com/Cinchoo/ChoPGP" alt="ChoPGP">ChoPGP</a> but updated to .NET Core framework and to add in a missing utilities class.
This is based on <a href="https://github.com/Cinchoo/ChoPGP" alt="ChoPGP">ChoPGP</a> but updated to .NET Standard and to add in a missing utilities class.

# Installation
To use PgpCore in your C# project, you can either download the PgpCore C# .NET libraries directly from the Github repository or, if you have the NuGet package manager installed, you can grab them automatically.
Expand All @@ -20,12 +20,10 @@ Add the following namespaces to use the library:
using PgpCore;
```
# Dependencies
BouncyCastle.NetCore (>= 1.8.1.3)

Microsoft.NETCore.App (>= 1.1.2)
* Portable.BouncyCastle (>= 1.8.6.7)

# Usage
This is intended for usage in .NET Core projects, the latest version that works with .NET Framework is v2.2.0.
This is intended for usage in projects [targeting .NET Standard 2.0](https://dotnet.microsoft.com/platform/dotnet-standard#versions).

## Methods

Expand Down

0 comments on commit 2fdec6a

Please sign in to comment.