Skip to content

Commit

Permalink
Restore App.Ref exclusions
Browse files Browse the repository at this point in the history
- also remove duplication between `@(AspNetCoreReferenceAssemblyPath)` additions (for efficiency)
  • Loading branch information
dougbu committed Sep 9, 2021
1 parent 8b969db commit 1be8200
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/Framework/App.Ref/src/Microsoft.AspNetCore.App.Ref.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
DependsOnTargets="ResolveReferences;FindReferenceAssembliesForReferences">
<ItemGroup>
<!-- Exclude transitive external dependencies that are not directly referenced in AspNetCore or Runtime. -->
<_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)')" />
</ItemGroup>
Expand All @@ -132,12 +130,22 @@ This package is an internal implementation of the .NET Core SDK and is not meant
</JoinItems>

<ItemGroup>
<!-- Again, ignore ref/ assemblies provided in the transport package that we don't want in this package. -->
<!--
Grab full dependency closure but exclude Microsoft.NETCore.App.Ref assets (avoid duplicates) and
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.
-->
<AspNetCoreReferenceAssemblyPath
Include="@(ReferencePathWithRefAssemblies)"
Exclude="
@(_ReferencedRuntimeRefAssemblies);
@(ReferencePathWithRefAssemblies->WithMetadataValue('NuGetPackageId', 'Microsoft.NETCore.App.Ref'))" />
@(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'))" />

<AspNetCoreReferenceAssemblyPath
Include="@(_ReferencedRuntimeRefAssemblies->'$(RuntimeTransportReferenceDirectory)%(FileName)%(Extension)')" />
Expand Down

0 comments on commit 1be8200

Please sign in to comment.