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
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…