Skip to content

Commit

Permalink
Target .NETFramework 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
nbarbettini committed Apr 14, 2017
1 parent ecfdfbe commit 96a712c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/JWT/Algorithms/RS256Algorithm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ public RS256Algorithm(X509Certificate2 cert)

public byte[] Sign(byte[] key, byte[] bytesToSign)
{
#if NET45
var rsa = (RSACryptoServiceProvider)_cert.PrivateKey;
#else
#if NETSTANDARD1_3
var rsa = (RSACryptoServiceProvider)_cert.GetRSAPrivateKey();
#else
var rsa = (RSACryptoServiceProvider)_cert.PrivateKey;
#endif
var param = new CspParameters
{
Expand Down
6 changes: 3 additions & 3 deletions src/JWT/JWT.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net45;netstandard1.3</TargetFrameworks>
<TargetFrameworks>net35;netstandard1.3</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net45'">
<PropertyGroup Condition="'$(TargetFramework)' == 'net35'">
<TargetFrameworkIdentifier>.NETFramework</TargetFrameworkIdentifier>
<DefineConstants>NET45</DefineConstants>
<DefineConstants>NET35</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.3'">
<TargetFrameworkIdentifier>.NETStandard</TargetFrameworkIdentifier>
Expand Down

0 comments on commit 96a712c

Please sign in to comment.