I have a solution containing several projects that have migrated from VS 2003, 2005, 2008. When compiling all the projects for the RELEASE configuration, VS 2008 creates PDB files for some projects, but not others. Why?
我有一个解决方案,其中包含从VS 2003,2005,2008迁移的多个项目。在编译RELEASE配置的所有项目时,VS 2008为某些项目创建PDB文件,但不为其他项目创建PDB文件。为什么?
In the Build tab of the Properties page for each project, I can see they all have "Define DEBUG constant" unchecked and "Optimize code" checked. When I inspect the CSPROJ for each project, I do not notice any differences that look like they would change this behavior. What should I be looking for in the CSPROJ files?
在每个项目的“属性”页面的“构建”选项卡中,我可以看到它们都未选中“定义DEBUG常量”并选中“优化代码”。当我检查每个项目的CSPROJ时,我没有发现任何看起来会改变这种行为的差异。我应该在CSPROJ文件中寻找什么?
All the projects in this solution produce class libraries except for one project that creates a Windows executable.
除了一个创建Windows可执行文件的项目外,此解决方案中的所有项目都生成类库。
1 个解决方案
#1
7
The setting is controlled in VS 2008 for C# projects in the "Build/Advanced Build Settings/Debug Info" setting. It's somewhat hidden - you have to press the "Advanced..." button to get the setting to show.
在VS 2008中为“构建/高级构建设置/调试信息”设置中的C#项目控制该设置。它有点隐藏 - 您必须按“高级...”按钮才能显示设置。
It corresponds to the /debug:pdbonly
option for the csc.exe
command line compiler.
它对应于csc.exe命令行编译器的/ debug:pdbonly选项。
#1
7
The setting is controlled in VS 2008 for C# projects in the "Build/Advanced Build Settings/Debug Info" setting. It's somewhat hidden - you have to press the "Advanced..." button to get the setting to show.
在VS 2008中为“构建/高级构建设置/调试信息”设置中的C#项目控制该设置。它有点隐藏 - 您必须按“高级...”按钮才能显示设置。
It corresponds to the /debug:pdbonly
option for the csc.exe
command line compiler.
它对应于csc.exe命令行编译器的/ debug:pdbonly选项。