gpt4 book ai didi

.net - 将web.config中的debug = false设置为构建的一部分

转载 作者:行者123 更新时间:2023-12-04 13:25:12 25 4
gpt4 key购买 nike

是否可以指示aspnet_compiler在web.config中设置debug = false?

我的意图是将其自动化,作为nant构建过程的一部分。我愿意接受除xml解析之外的其他建议

最佳答案

您是否考虑过使用<xmlpoke>

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

NAnt Home Page

XML Poke Documentation

关于.net - 将web.config中的debug = false设置为构建的一部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/678096/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com