MsBuild not generating PDB files in Release configuration

后端 未结 3 2061
一整个雨季
一整个雨季 2021-02-14 06:35

3条回答
  •  温柔的废话
    2021-02-14 07:04

    After looking at the Microsoft.Web.Publishing.targets source, I have found a variable (ExcludeGeneratedDebugSymbol) being set to True in Release mode. From the comments, it looks like they wanted to exclude symbols from WebSite project, but the condition is not properly set for WebApplication project.

    So, I have decided to override my build scrip from the caller arguments and it worked like a charm. I have not yet ascertained any side affects it may cause or using the undocumented property for future stability, but it works for now.

    From the Microsoft.Web.Publishing.target file

    
        True
    
        True
        False
    

    I have updated my script as follows.

    
    

提交回复
热议问题