Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added netstandard2.1 to the build targets #586

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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