我每次开始一个新的软件,我必须去到配置和关闭PDB文件生成和Visual Studio的托管过程中发布版本。有没有办法告诉的Visual Studio(2008年明确),我想这样做,为的其余时间所有项目?
Every time I start a new piece of software I have to go into the configuration and turn off pdb file generation and the Visual Studio hosting process for Release builds. Is there any way to tell Visual Studio (2008 specifically) that I want to do that for all projects for the rest of time?
推荐答案经过一番周围挖,似乎对C#的项目文件都存储在 \ Program Files文件\微软的Visual Studio 9.0 \ common7 \ IDE \ projecttemplatescache \ CSHARP \ WINDOWS \ 1033 。通过添加< UseVSHostingProcess>假< / UseVSHostingProcess> 到正确的部分(有用于调试独立的部分和Release配置)的相关模板,你可以关闭托管过程中所选择的类型的所有未来的项目。
After some digging around, it appears that project files for C# are stored in \program files\microsoft visual studio 9.0\common7\ide\projecttemplatescache\csharp\windows\1033. By adding <UseVSHostingProcess>false</UseVSHostingProcess> to the correct sections (there are separate sections for Debug and Release configurations) of the relevant templates, you can turn off the hosting process for all future projects of the selected types.
您应该能够以类似的方式来处理PDB问题,但正如我所说,我不建议转向那些了,所以我把它作为一个练习:)
You should be able to handle the PDB issue in a similar way, but as I said I don't recommend turning those off, so I'll leave it as an exercise :)
这适用于VS2008,但我的猜测是,其他版本也有类似的计划。事实上,VS2010使用相同的方法,但很明显,在目录版本号为10.0,而不是9.0
This applies to VS2008, but my guess is that other editions have a similar scheme. In fact, VS2010 uses the same approach, but obviously the version number in the directory is 10.0 instead of 9.0.
更多推荐
如何关闭PDB生成和vshost所有发布版本
发布评论