Skip to content

Commit fd9c728

Browse files
authored
Include PDB for all TfmRuntimeSpecificPackageFile (#111879)
Previously this would only include the PDB for the primary output which missed any other additions to TfmRuntimeSpecificPackageFile - such as those from references or packages.
1 parent fffbd3e commit fd9c728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/packaging.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
<TfmSpecificPackageFile Include="@(TfmRuntimeSpecificPackageFile)"
123123
PackagePath="runtimes\$(_packageTargetRuntime)\$(BuildOutputTargetFolder)\$(_targetFrameworkWithoutSuffix)\" />
124124
<!-- Create the item and use its metadata separately to avoid MSB4120. See https://aka.ms/msbuild/metadata-self-ref for more info. -->
125-
<_RuntimeSymbolPath Include="$(RuntimeSymbolPath)" />
125+
<_RuntimeSymbolPath Include="@(TfmRuntimeSpecificPackageFile->'%(RootDir)%(Directory)%(FileName).pdb')" Condition="'%(TfmRuntimeSpecificPackageFile.Extension)' == '.dll'" KeepMetadata="None" />
126126
<TfmSpecificDebugSymbolsFile Include="@(_RuntimeSymbolPath)"
127127
TargetPath="/runtimes/$(_packageTargetRuntime)/$(BuildOutputTargetFolder)/$(_targetFrameworkWithoutSuffix)/%(_RuntimeSymbolPath.Filename)%(_RuntimeSymbolPath.Extension)"
128128
TargetFramework="$(_targetFrameworkWithoutSuffix)"

0 commit comments

Comments
 (0)