【发布时间】:2010-11-25 14:35:57
【问题描述】:
我有一个 ASP MVC 视图,其中有以下语句
#if DEBUG
//section 1
//do stuff
#else
//section 2
//do other stuff
#endif
在 Visual Studio 中,我从下拉列表中选择发布配置进行构建时,代码仍会逐步执行第 1 节。
在解决方案配置属性中,解决方案的所有子项目都设置为发布配置。
我在这里没有得到什么?
【问题讨论】:
标签: asp.net-mvc configuration debugging