From 8b969db16036f31f625ad534861310fa643ec61f Mon Sep 17 00:00:00 2001 From: Doug Bunting <6431421+dougbu@users.noreply.github.com> Date: Tue, 7 Sep 2021 12:54:57 -0700 Subject: [PATCH 1/3] [release/6.0 Cleanup remaining SSP references - follow up to e58a6c2465a7 - remove references to System.Security.Permissions or its closure - only mentions are in eng/PackageOverrides.txt and eng/PlatformManifest.txt - those files will remain unused until we update them in the run-up to 6.0.1 - still indirectly pick up package refs for SSP and its closure but that does not impact targeting pack content nit: Only need to exclude System.Net.Quic and System.Security.Cryptography.Pkcs from `@(_AvailableRuntimeRefAssemblies)` - assemblies are not in `@(ReferencePathWithRefAssemblies)`, just the transport package --- .../src/Microsoft.AspNetCore.App.Ref.csproj | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj b/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj index e7868125ebf3..a6624ecbc9e3 100644 --- a/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj +++ b/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj @@ -121,12 +121,8 @@ This package is an internal implementation of the .NET Core SDK and is not meant <_DisallowedReferenceAssemblies Include=" - Microsoft.Win32.SystemEvents.dll; - System.Drawing.Common.dll; System.Net.Quic.dll; - System.Security.Cryptography.Pkcs.dll; - System.Security.Permissions.dll; - System.Windows.Extensions.dll" /> + System.Security.Cryptography.Pkcs.dll" /> <_AvailableRuntimeRefAssemblies Include="$(RuntimeTransportReferenceDirectory)*.dll" Exclude="@(_DisallowedReferenceAssemblies->'$(RuntimeTransportReferenceDirectory)%(Filename)%(Extension)')" /> @@ -141,13 +137,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant Include="@(ReferencePathWithRefAssemblies)" Exclude=" @(_ReferencedRuntimeRefAssemblies); - @(ReferencePathWithRefAssemblies->WithMetadataValue('NuGetPackageId', 'Microsoft.NETCore.App.Ref')); - @(ReferencePathWithRefAssemblies->WithMetadataValue('Filename', 'Microsoft.Win32.SystemEvents')); - @(ReferencePathWithRefAssemblies->WithMetadataValue('Filename', 'System.Drawing.Common')); - @(ReferencePathWithRefAssemblies->WithMetadataValue('Filename', 'System.Net.Quic')); - @(ReferencePathWithRefAssemblies->WithMetadataValue('Filename', 'System.Security.Cryptography.Pkcs')); - @(ReferencePathWithRefAssemblies->WithMetadataValue('Filename', 'System.Security.Permissions')); - @(ReferencePathWithRefAssemblies->WithMetadataValue('Filename', 'System.Windows.Extensions'));" /> + @(ReferencePathWithRefAssemblies->WithMetadataValue('NuGetPackageId', 'Microsoft.NETCore.App.Ref'))" /> From 1be8200be184dce9ee13c4c48dacb0dd4deda622 Mon Sep 17 00:00:00 2001 From: Doug Bunting <6431421+dougbu@users.noreply.github.com> Date: Wed, 8 Sep 2021 17:26:03 -0700 Subject: [PATCH 2/3] Restore App.Ref exclusions - also remove duplication between `@(AspNetCoreReferenceAssemblyPath)` additions (for efficiency) --- .../src/Microsoft.AspNetCore.App.Ref.csproj | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj b/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj index a6624ecbc9e3..6a4f086ab216 100644 --- a/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj +++ b/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj @@ -120,9 +120,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant DependsOnTargets="ResolveReferences;FindReferenceAssembliesForReferences"> - <_DisallowedReferenceAssemblies Include=" - System.Net.Quic.dll; - System.Security.Cryptography.Pkcs.dll" /> + <_DisallowedReferenceAssemblies Include="System.Net.Quic.dll; System.Security.Cryptography.Pkcs.dll" /> <_AvailableRuntimeRefAssemblies Include="$(RuntimeTransportReferenceDirectory)*.dll" Exclude="@(_DisallowedReferenceAssemblies->'$(RuntimeTransportReferenceDirectory)%(Filename)%(Extension)')" /> @@ -132,12 +130,22 @@ This package is an internal implementation of the .NET Core SDK and is not meant - + + @(ReferencePathWithRefAssemblies->WithMetadataValue('NuGetPackageId', 'Microsoft.NETCore.App.Ref')); + @(ReferencePathWithRefAssemblies->WithMetadataValue('NuGetPackageId', 'Microsoft.Internal.Runtime.AspNetCore.Transport')); + @(ReferencePathWithRefAssemblies->WithMetadataValue('Filename', 'System.Diagnostics.EventLog')); + @(ReferencePathWithRefAssemblies->WithMetadataValue('Filename', 'System.IO.Pipelines')); + @(ReferencePathWithRefAssemblies->WithMetadataValue('Filename', 'System.Security.Cryptography.Pkcs')); + @(ReferencePathWithRefAssemblies->WithMetadataValue('Filename', 'System.Security.Cryptography.Xml'))" /> From 4f94240d26e42761f5123c0d7730a58471708450 Mon Sep 17 00:00:00 2001 From: Doug Bunting <6431421+dougbu@users.noreply.github.com> Date: Wed, 8 Sep 2021 18:04:22 -0700 Subject: [PATCH 3/3] !fixup! Correct comments - Crypto.Pkcs is **not** present in the transport package --- .../App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj b/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj index 6a4f086ab216..72fe921a7171 100644 --- a/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj +++ b/src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj @@ -119,8 +119,8 @@ This package is an internal implementation of the .NET Core SDK and is not meant BeforeTargets="_GetPackageFiles" DependsOnTargets="ResolveReferences;FindReferenceAssembliesForReferences"> - - <_DisallowedReferenceAssemblies Include="System.Net.Quic.dll; System.Security.Cryptography.Pkcs.dll" /> + + <_DisallowedReferenceAssemblies Include="System.Net.Quic.dll" /> <_AvailableRuntimeRefAssemblies Include="$(RuntimeTransportReferenceDirectory)*.dll" Exclude="@(_DisallowedReferenceAssemblies->'$(RuntimeTransportReferenceDirectory)%(Filename)%(Extension)')" /> @@ -135,7 +135,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant Microsoft.Internal.Runtime.AspNetCore.Transport assets (almost all added just below). Filename exclusions are due to implementation assemblies creeping into the closure. Reference assemblies - for all are available in the transport package though System.Security.Cryptography.Pkcs is excluded. + for all but System.Security.Cryptography.Pkcs are available in the transport package. -->