@@ -117,6 +117,12 @@ This package is an internal implementation of the .NET Core SDK and is not meant
117
117
<Output TaskParameter =" JoinResult" ItemName =" _ReferencedExtensionsRefAssemblies" />
118
118
</JoinItems >
119
119
120
+ <!-- _DuplicatedExtensionsRefAssemblies represents ref assemblies that are present in Microsoft.Internal.Extensions.Refs package and also are built in this repo. -->
121
+ <!-- This should be temporary while we migrate sources since there should be no duplication when sources are deleted from extensions. -->
122
+ <JoinItems Left =" @(_ReferencedExtensionsRefAssemblies)" Right =" @(_ResolvedProjectReferencePaths)" LeftKey =" Filename" RightKey =" Filename" ItemSpecToUse =" Left" >
123
+ <Output TaskParameter =" JoinResult" ItemName =" _DuplicatedExtensionsRefAssemblies" />
124
+ </JoinItems >
125
+
120
126
<JoinItems Left =" @(_ReferencedExtensionsRefAssemblies)" Right =" @(ExternalAspNetCoreAppReference)" LeftKey =" Filename" RightKey =" Identity" ItemSpecToUse =" Left" >
121
127
<Output TaskParameter =" JoinResult" ItemName =" _SelectedExtensionsRefs" />
122
128
</JoinItems >
@@ -126,12 +132,15 @@ This package is an internal implementation of the .NET Core SDK and is not meant
126
132
</JoinItems >
127
133
128
134
<ItemGroup >
135
+ <!-- Do not exclude the ref assemblies that we built in this repo if it's also included in Microsoft.Internal.Extensions.Refs -->
136
+ <_ReferencedExtensionsRefAssembliesToExclude Include =" @(_ReferencedExtensionsRefAssemblies)" Exclude =" @(_DuplicatedExtensionsRefAssemblies)" />
137
+
129
138
<!-- Exclude transitive external dependencies that are not directly referenced by projects in AspNetCore or Extensions -->
130
139
<AspNetCoreReferenceAssemblyPath
131
140
Include =" @(ReferencePathWithRefAssemblies)"
132
141
Condition =" '%(ReferencePathWithRefAssemblies.IsReferenceAssembly)' == 'true'"
133
142
Exclude ="
134
- @(_ReferencedExtensionsRefAssemblies );
143
+ @(_ReferencedExtensionsRefAssembliesToExclude );
135
144
@(ReferencePathWithRefAssemblies->WithMetadataValue('NuGetPackageId', 'Microsoft.NETCore.App.Ref'));
136
145
@(ReferencePathWithRefAssemblies->WithMetadataValue('NuGetPackageId', 'System.Security.Cryptography.Pkcs'));
137
146
@(ReferencePathWithRefAssemblies->WithMetadataValue('NuGetPackageId', 'System.Drawing.Common'));
0 commit comments