Reputation: 3752
The steps of my build:
/p:DeployOnBuild=true /p:PublishProfile=Publish /p:OutputPath=Publish /p:TeamDirectory="$(TeamName)\\" /p:ExcludeGeneratedDebugSymbol=false
Additional configuration:
<ExcludeGeneratedDebugSymbol>false</ExcludeGeneratedDebugSymbol>
under each PropertyGroup.<DebugType>pdbonly</DebugType>
and <DebugSymbols>true</DebugSymbols>
The bin directory for all projects including the website contains appropriate .pdb files. The Publish directory and the generated artifact do not have any .pdb files except for Antlr3.Runtime.pdb
, EntityFramework.MappingAPI.pdb
, and RefactorThis.GraphDiff.pdb
. Running publish locally through VS copies the .pdb files as expected.
Upvotes: 0
Views: 274
Reputation: 30432
I tested at my side, TFS has the same behavior with local VS, it's the default behavior.
Normally the Antlr3.Runtime.pdb
and project project.pdb
will display there, If you have other third packages, you need to make sure the .pdb
files are included in them when get sources.
Whatever, have a try for these arguments /p:DebugSymbols=true /p:DebugType=full
Upvotes: 1