From 19b9765e4541410ad7171e55443fb0fadf2efd0b Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Mon, 30 Jun 2025 20:24:41 +0200 Subject: [PATCH] Include Pkcs (net10.0 & -windows) in aspnetcore transport pack Fixes https://github.com/dotnet/runtime/issues/117146 --- eng/packaging.targets | 4 ++-- ...Internal.Runtime.AspNetCore.Transport.proj | 20 +++++++++++++++++++ src/libraries/NetCoreAppLibrary.props | 1 + 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/eng/packaging.targets b/eng/packaging.targets index 9b000025c96cfb..23498173934306 100644 --- a/eng/packaging.targets +++ b/eng/packaging.targets @@ -250,9 +250,9 @@ <_projectReferenceCopyLocalPaths Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('Pack', 'true'))" /> + PackagePath="$([MSBuild]::ValueOrDefault('%(ReferenceCopyLocalPaths.PackagePath)', '$(BuildOutputTargetFolder)/$(_referringTargetFramework)/'))" /> diff --git a/src/libraries/Microsoft.Internal.Runtime.AspNetCore.Transport/src/Microsoft.Internal.Runtime.AspNetCore.Transport.proj b/src/libraries/Microsoft.Internal.Runtime.AspNetCore.Transport/src/Microsoft.Internal.Runtime.AspNetCore.Transport.proj index 75c58e337fdb3e..e2148d594c9f21 100644 --- a/src/libraries/Microsoft.Internal.Runtime.AspNetCore.Transport/src/Microsoft.Internal.Runtime.AspNetCore.Transport.proj +++ b/src/libraries/Microsoft.Internal.Runtime.AspNetCore.Transport/src/Microsoft.Internal.Runtime.AspNetCore.Transport.proj @@ -14,6 +14,7 @@ $(NoWarn);NU5131 true + $(TargetsForTfmSpecificContentInPackage);IncludePkcsWindowsProjectReference @@ -23,6 +24,7 @@ PrivateAssets="all" Private="true" IncludeReferenceAssemblyInPackage="true" /> + + + + + + + + <_pkcsWindowsProjectReferenceAsPdb Include="$([System.IO.Path]::ChangeExtension('%(PkcsWindowsProjectReference.Identity)', '.pdb'))" /> + + + + + diff --git a/src/libraries/NetCoreAppLibrary.props b/src/libraries/NetCoreAppLibrary.props index e016534d70af44..016b13875edabd 100644 --- a/src/libraries/NetCoreAppLibrary.props +++ b/src/libraries/NetCoreAppLibrary.props @@ -224,6 +224,7 @@ Microsoft.Extensions.Primitives; System.Diagnostics.EventLog; System.Formats.Cbor; + System.Security.Cryptography.Pkcs; System.Security.Cryptography.Xml; System.Threading.AccessControl; System.Threading.RateLimiting;