调试和发布配置
众所周知,在 Visual Studio 中有两种预定义的配置 - 调试和发布。自从我开始编程以来,我就一直在使用它们,并且很快就了解了它们的差异。然而最近我必须创建自己的配置,现在我有一个问题:这两个配置是否仅由“项目选项”页面中的参数/选项定义/确定?或者微软编译器是否以特殊方式对待它们?
我的问题是 - 如果我创建一个新配置并复制调试或发布中的所有设置,我的新配置是否等于预定义的调试/发布或不完全?
希望我的问题很清楚。
As we all know, in Visual Studio there are two predefined configurations - Debug and Release. I have been using them since I started programming and soon learnt their differences. However recently I had to create my own configurations and now I have a question: Are those two configurations defined/determined solely by their parameters/options from "project options" page? Or does the microsoft compiler treat them in a special way?
My question is this - if I create a new configuration and copy all settings from Debug or Release, will my new configuration be equivalent to the predefined Debug/Release or not entirely?
Hope my question is clear.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。
是的,会的。
例如,调试配置定义
_DEBUG
,发布配置启用优化等。Yes.
Yes it will.
For instance, the debug configuration defines
_DEBUG
, the release configuration enables optimisations, etc.