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..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,14 +119,8 @@ This package is an internal implementation of the .NET Core SDK and is not meant BeforeTargets="_GetPackageFiles" DependsOnTargets="ResolveReferences;FindReferenceAssembliesForReferences"> - - <_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" /> + + <_DisallowedReferenceAssemblies Include="System.Net.Quic.dll" /> <_AvailableRuntimeRefAssemblies Include="$(RuntimeTransportReferenceDirectory)*.dll" Exclude="@(_DisallowedReferenceAssemblies->'$(RuntimeTransportReferenceDirectory)%(Filename)%(Extension)')" /> @@ -136,18 +130,22 @@ This package is an internal implementation of the .NET Core SDK and is not meant - + + @(ReferencePathWithRefAssemblies->WithMetadataValue('Filename', 'System.Security.Cryptography.Xml'))" />