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

Some members are not available on .NET Full Fw >= 4.7 although they should #501

Open
ulrichb opened this issue Dec 1, 2023 · 0 comments

Comments

@ulrichb
Copy link

ulrichb commented Dec 1, 2023

Some members like DotNetUtilities.GetECKeyPair() are not available on a consuming project with e.g. .NET Full Fw 4.8.

The reason is that,

a) we do if NETCOREAPP1_0_OR_GREATER || NET47_OR_GREATER || NETSTANDARD1_6_OR_GREATER conditional compilation (see e.g. https://github.com/bcgit/bc-csharp/blob/release/v2.2/crypto/src/security/DotNetUtilities.cs#L87-L88),

and b) the target frameworks of BouncyCastle.Cryptography are net6.0;netstandard2.0;net461.

=> In a consuming project with e.g. .NET 4.8 the net461 target framework of BouncyCastle.Cryptography is resolved, which does not include the NET47_OR_GREATER members. (Note that the net461 version and not the netstandard2.0 version is resolved on e.g. .NET 4.8.)

The solution should be simple: Add a net47 (or maybe simply replace net461, as .NET 4.6.1 is out of support since Apr '22).

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

No branches or pull requests

1 participant