Skip to content

Commit 54c2d9d

Browse files
author
John Luo
committed
Include extensions ref assemblies if used
1 parent c34d23c commit 54c2d9d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Framework/ref/Microsoft.AspNetCore.App.Ref.csproj

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,22 @@ This package is an internal implementation of the .NET Core SDK and is not meant
110110
</ItemGroup>
111111

112112
<JoinItems Left="@(ReferencePathWithRefAssemblies)" Right="@(_AvailableExtensionsRefAssemblies)" LeftKey="Filename" RightKey="Filename" ItemSpecToUse="Left">
113+
<Output TaskParameter="JoinResult" ItemName="_ReferencedExtensionsRefAssemblies" />
114+
</JoinItems>
115+
116+
<JoinItems Left="@(_ReferencedExtensionsRefAssemblies)" Right="@(ExternalAspNetCoreAppReference)" LeftKey="Filename" RightKey="Identity" ItemSpecToUse="Left">
117+
<Output TaskParameter="JoinResult" ItemName="_SelectedExtensionsRefs" />
118+
</JoinItems>
119+
120+
<JoinItems Left="@(ReferencePathWithRefAssemblies)" Right="@(_SelectedExtensionsRefs)" LeftKey="Filename" RightKey="Filename" ItemSpecToUse="Left">
113121
<Output TaskParameter="JoinResult" ItemName="_SelectedExtensionsRefAssemblies" />
114122
</JoinItems>
115123

116124
<ItemGroup>
117125
<AspNetCoreReferenceAssemblyPath
118126
Include="@(ReferencePathWithRefAssemblies)"
119127
Exclude="
120-
@(_SelectedExtensionsRefAssemblies);
128+
@(_ReferencedExtensionsRefAssemblies);
121129
@(ReferencePathWithRefAssemblies->WithMetadataValue('NuGetPackageId', 'Microsoft.NETCore.App.Ref'));
122130
@(ReferencePathWithRefAssemblies->WithMetadataValue('IsReferenceAssembly', 'false'));
123131
@(ReferencePathWithRefAssemblies->WithMetadataValue('ReferenceGrouping', 'Microsoft.NETCore.App'));" />

0 commit comments

Comments
 (0)