Disable generating PDB files in MsBuild

前端 未结 1 918
日久生厌
日久生厌 2020-12-13 07:59

I\'m looking to squeeze some more speed out of my build and was wondering if I could instruct msbuild to not generate PDB files. I\'m passing the Configuration=Release and

相关标签:
1条回答
  • 2020-12-13 08:43

    You may have PDB generation in your release configuration. Add this to your release settings:

    <DebugSymbols>false</DebugSymbols>
    <DebugType>None</DebugType>
    

    You can also, do this in your project configuration inside visual studio. Disable PDB Generation

    Also, if running MSBuild from the command line, the command line arguments would be

    MSBuild.exe YourProject.csproj /p:DebugSymbols=false /p:DebugType=None
    
    0 讨论(0)
提交回复
热议问题