设置调试=假在web.config中作为构建的一部分 [英] Setting debug=false in web.config as part of build

查看:182
本文介绍了设置调试=假在web.config中作为构建的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能指示aspnet_compiler设置调试=假在web.config?

Is it possible to instruct the aspnet_compiler to set debug=false in the web.config?

我的目的是自动化以此为恶性构建过程的一部分。我愿意接受比XML解析

My intention is to automate this as part of the nant build process. I am open to suggestions other than xml parsing

推荐答案

你有没有想过使用< xmlpoke>

<xmlpoke file="${Build.WebConfig}" 
    xpath="/configuration/system.web/compilation/@debug" 
    value="false">
</xmlpoke>

楠首页

XML文档戳

这篇关于设置调试=假在web.config中作为构建的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆