Skip to content

Conversation

jstedfast
Copy link
Contributor

@jstedfast jstedfast commented Dec 20, 2024

Describe your changes

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) if it is itself referenced by an app (or other library) that targets net6.0+, resulting in a "missing implementation" error.

Fixes issue #447 (at least in a practical sense)

How has this been tested?

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have kept the patch limited to only change the parts related to the patch
  • This change requires a documentation update

See also Contributing Guidelines.

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant