Skip to content

Commit

Permalink
Added netstandard2.1 to the build targets
Browse files Browse the repository at this point in the history
There are a number of APIs in BouncyCastle that are conditionally enabled
(such as APIs that make use of `ReadOnlySpan<T>`) when
`#if NETSTANDARD2_1_OR_GREATER` evaluates to `true`.

This causes issues if any library that references BouncyCastle targets netstandard2.1
(and would therefore build against the netstandard2.0 version of BC) is, itself,
referenced by an app (or other library) that targets net6.0+, resulting an a
"missing implementation" error.

Fixes issue bcgit#447 (at least in a practical sense)
  • Loading branch information
jstedfast committed Dec 20, 2024
1 parent b9ac9ff commit ccf5752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/src/BouncyCastle.Crypto.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;netstandard2.0;net461</TargetFrameworks>
<TargetFrameworks>net8.0;net6.0;netstandard2.0;netstandard2.1;net461</TargetFrameworks>
<RootNamespace>Org.BouncyCastle</RootNamespace>
<AssemblyOriginatorKeyFile>..\..\BouncyCastle.NET.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
Expand Down

0 comments on commit ccf5752

Please sign in to comment.