如何关闭PDB生成和vshost所有发布版本

编程入门 行业动态 更新时间:2024-10-13 08:17:56
本文介绍了如何关闭PDB生成和vshost所有发布版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我每次开始一个新的软件,我必须去到配置和关闭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所有发布版本

本文发布于:2023-05-28 00:43:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/308159.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:版本   PDB   vshost

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!