Skip to content

Commit 109f957

Browse files
Include PDB for all TfmRuntimeSpecificPackageFile (#112139)
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. Co-authored-by: Eric StJohn <ericstj@microsoft.com>
1 parent 881b4bd commit 109f957

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
@@ -133,7 +133,7 @@
133133
<TfmSpecificPackageFile Include="@(TfmRuntimeSpecificPackageFile)"
134134
PackagePath="runtimes\$(_packageTargetRuntime)\$(BuildOutputTargetFolder)\$(_targetFrameworkWithoutSuffix)\" />
135135
<!-- Create the item and use its metadata separately to avoid MSB4120. See https://aka.ms/msbuild/metadata-self-ref for more info. -->
136-
<_RuntimeSymbolPath Include="$(RuntimeSymbolPath)" />
136+
<_RuntimeSymbolPath Include="@(TfmRuntimeSpecificPackageFile->'%(RootDir)%(Directory)%(FileName).pdb')" Condition="'%(TfmRuntimeSpecificPackageFile.Extension)' == '.dll'" KeepMetadata="None" />
137137
<TfmSpecificDebugSymbolsFile Include="@(_RuntimeSymbolPath)"
138138
TargetPath="/runtimes/$(_packageTargetRuntime)/$(BuildOutputTargetFolder)/$(_targetFrameworkWithoutSuffix)/%(_RuntimeSymbolPath.Filename)%(_RuntimeSymbolPath.Extension)"
139139
TargetFramework="$(_targetFrameworkWithoutSuffix)"

0 commit comments

Comments
 (0)