I have a solution converted from VS2010 to VS2012. In the Release build, I want it to create PDB files and full debugging characters, because I need to run remote debugging in production.
So, I set Debug Info to full for the Release configuration. I also confirmed the following in the project manifest file:
<DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimized>true</Optimized>
But when I start MSBuild, the package I create does not include PDB files. However, if I use the Visual Studio publish function with the Release setting, I get the PDB files on the target web server. What could be wrong with the build team?
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe "C:\MyWebApp.csproj" /t:rebuild;package /p:OutPath="C:\MyWebApp\obj" /p:OutputPath="C:\MyWebApp\bin" /p:Configuration=Release /p:Platform=AnyCPU
I tried disabling the Optimized bit, but that didn't help.
source share