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

Remove incompatible API from PKCS netstandard2.0 lib #112591

Merged
merged 2 commits into from
Feb 16, 2025

Conversation

bartonjs
Copy link
Member

The package used to contain a reference assembly that did not describe these members. When the reference assemblies were removed from the package, these members became visible; but they aren't present on .NET Framework, so a netstandard 2.0 build that runs on .NET Framework gets a lot of missing member exceptions.

Fixes #111749

The package used to contain a reference assembly that did not describe
these members.  When the reference assemblies were removed from
the package, these members became visible; but they aren't present on
.NET Framework, so a netstandard 2.0 build that runs on .NET Framework
gets a lot of missing member exceptions.
@bartonjs bartonjs added area-System.Security breaking-change Issue or PR that represents a breaking API or functional change over a prerelease. labels Feb 15, 2025
@bartonjs bartonjs added this to the 10.0.0 milestone Feb 15, 2025
@bartonjs bartonjs self-assigned this Feb 15, 2025
@Copilot Copilot bot review requested due to automatic review settings February 15, 2025 01:03
@dotnet-policy-service dotnet-policy-service bot added the needs-breaking-change-doc-created Breaking changes need an issue opened with https://github.com/dotnet/docs/issues/new?template=dotnet label Feb 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 8 changed files in this pull request and generated no comments.

Files not reviewed (3)
  • src/libraries/System.Security.Cryptography.Pkcs/src/CompatibilitySuppressions.xml: Language not supported
  • src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/SignedCms.cs: Evaluated as low risk
  • src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/Rfc3161TimestampRequest.cs: Evaluated as low risk
Comments suppressed due to low confidence (1)

src/libraries/System.Security.Cryptography.Pkcs/src/System/Security/Cryptography/Pkcs/EnvelopedCms.cs:232

  • Ensure that the Decrypt method's behavior is covered by tests, especially with the conditional compilation changes.
void Decrypt(RecipientInfo recipientInfo, AsymmetricAlgorithm? privateKey)
@bartonjs bartonjs merged commit 4cd3948 into dotnet:main Feb 16, 2025
84 of 86 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Security breaking-change Issue or PR that represents a breaking API or functional change over a prerelease. needs-breaking-change-doc-created Breaking changes need an issue opened with https://github.com/dotnet/docs/issues/new?template=dotnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

System.Security.Cryptography.Pkcs is broken on .NET Framework
2 participants