Skip to content

Conversation

@wtgodbe
Copy link
Member

@wtgodbe wtgodbe commented Oct 27, 2025

Fix #64125. This library wasn't in the targeting pack historically due to some quirks of reference resolution, but AFAIK there's not a strong reason to maintain that behavior. Adding it to the transport pack will fix some issues w/ package pruning.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds System.Security.Cryptography.Pkcs to the ASP.NET Core targeting pack to resolve package pruning issues. The library was previously excluded due to historical reference resolution quirks, but this exclusion is no longer necessary.

Key Changes:

  • Removed the MSBuild target that explicitly excluded System.Security.Cryptography.Pkcs from the reference pack
  • Added System.Security.Cryptography.Pkcs to the test data to validate its inclusion

Reviewed Changes

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

File Description
src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.sfxproj Removed the _RemovePkcsReference MSBuild target that was excluding the Pkcs library
src/Framework/test/TestData.cs Added System.Security.Cryptography.Pkcs to the expected assemblies list for test validation

@github-actions github-actions bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Oct 27, 2025
@wtgodbe wtgodbe merged commit 5dde6e4 into main Oct 27, 2025
31 checks passed
@wtgodbe wtgodbe deleted the wtgodbe/YesPkcs branch October 27, 2025 19:28
@dotnet-policy-service dotnet-policy-service bot added this to the 11.0-preview1 milestone Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ASP.NETCore contains System.Security.Cryptography.Pkcs but does not expose for reference

3 participants