Skip to content

Commit 76fbd1a

Browse files
authored
Strip duplicate files from SharedFx input to Nuget Pack (#25733)
1 parent 8f46188 commit 76fbd1a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,14 @@ This package is an internal implementation of the .NET Core SDK and is not meant
288288
<!-- Crossgen symbols for Linux include a GUID in the file name which cannot be predicted. -->
289289
<BuiltProjectOutputGroupOutput Include="$(TargetDir)*.map" Condition="'$(CrossGenSymbolsType)' == 'PerfMap'" />
290290

291-
<NuGetPackInput Include="@(BuiltProjectOutputGroupOutput)" />
291+
<!-- Strip duplicate Files by checking for distinct %(FileName)%(Extension) -->
292+
<OutputFileNames Include="%(BuiltProjectOutputGroupOutput.FileName)%(BuiltProjectOutputGroupOutput.Extension)">
293+
<ItemPath>%(BuiltProjectOutputGroupOutput.Identity)</ItemPath>
294+
</OutputFileNames>
295+
296+
<DistinctOutputFileNames Include="@(OutputFileNames->Distinct())"></DistinctOutputFileNames>
297+
298+
<NuGetPackInput Include="%(DistinctOutputFileNames.ItemPath)" />
292299
</ItemGroup>
293300
</Target>
294301

0 commit comments

Comments
 (0)