PDB created then sometimes deleted during msbuild RRS feed

  • Question

  • Hey Guys,

    I was wondering if any else has seen this weird behaviour. Building with Visual Studio 2015 with "%VS140COMNTOOLS. Just using msbuild to build project in a build.bat file and I notice that some pdb's get generated and they just disapppear a few minutes later, deleted and the sometimes they wont get deleted and exist after the build is complete. Completely random when this happens.

    Has anyone experience this ?

    Any help much apprepicated.



    Tuesday, April 5, 2016 8:24 AM


  • Hi gazmaxman,

    According to below link that’s about MSBuild Project Properties you could know that “DebugSymbols” is a boolean value that indicates whether symbols are generated by the build, if you set it equals “false”, it would disable generation of program database (.pdb) symbol files.

    Besides, if you want to prevent the pdb file be created, you could add below code to your release/debug settings. For your issue, you should pay more attention to the settings in your Proj.csproj for different build mode.


    Or, you could just run below MSBuild to achieve this goal.

    MSBuild.exe YourProject.csproj /p:DebugSymbols=false /p:DebugType=None
    Best Regards,
    Li Wang

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, April 7, 2016 2:09 AM