Visual Studio 2012 Website Publish Not Copying .pdb files

前端 未结 2 564
你的背包
你的背包 2020-12-24 11:51

I have used VS 2010 and VS2008. When I used them with my WCF Service projects, my .PDB files were always copied when I did a Publish Web Site. Now, with VS2012, no PDB fil

2条回答
  •  余生分开走
    2020-12-24 12:54

    In VS2012 Website publishing, symbols are always excluded by default. Why? It comes down to a design issue where website projects don't actually have a build configuration. If you look at the configuration manager in VS when your solution is in Release mode, the website project will always be in Debug mode; there are no other options. This is because website projects are not MSBuild based, and hence do not respect MSBuild configurations.

    Instead, you can edit your .pubxml to tell it to include the symbols. Try adding this:

    
      False
    
    

提交回复
热议问题