Visual Studio 2012 Website Publish Not Copying .pdb files

前端 未结 2 554
你的背包
你的背包 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:31

    For me this worked (in the publishing profile):

    <PropertyGroup>
       ...
       <DebugSymbols>True</DebugSymbols>
    </PropertyGroup>
    

    Or using the publishing wizard:

    enter image description here

    0 讨论(0)
  • 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:

    <PropertyGroup>
      <ExcludeGeneratedDebugSymbol>False</ExcludeGeneratedDebugSymbol>
    </PropertyGroup>
    
    0 讨论(0)
提交回复
热议问题