Skip to content

SymStore.targets mistakenly assumes that PDB's are always named as $(TargetName).pdb #2874

@vatsan-madhavan

Description

@vatsan-madhavan

_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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions