_InnerDeployToSymStore in SymStore.targets assumes that pdb files are always named $(TargetPath).ChangeExtension('.pdb').
This is not always true. For e.g., PDB's can (and sometime are) produced with different names. For e.g., WPF produces some PDB's with a different name (-compile suffix; see this)
<!--
Disambiguate the PDB produced by the compiler with a -compile suffix, so that the PDB
produced by the linker is not accidentally clobbered by this one.
-->
<ProgramDatabaseFileName>$(IntermediateOutputPath)$(TargetName)-compile.pdb</ProgramDatabaseFileName>
These PDB's are ignored during publishing.
Perhaps _InnerDeployToSymStore should be using a glob-pattern to search for PDB's instead of using a specific assumption about how PDB files are named.
/cc @dotnet/wpf-developers
/cc @rladuca
/cc @tmat
_InnerDeployToSymStorein SymStore.targets assumes thatpdbfiles are always named$(TargetPath).ChangeExtension('.pdb').This is not always true. For e.g., PDB's can (and sometime are) produced with different names. For e.g., WPF produces some PDB's with a different name (
-compilesuffix; see this)These PDB's are ignored during publishing.
Perhaps
_InnerDeployToSymStoreshould be using a glob-pattern to search for PDB's instead of using a specific assumption about how PDB files are named./cc @dotnet/wpf-developers
/cc @rladuca
/cc @tmat