简体   繁体   English

将app.config更改为MSBuild脚本的一部分

[英]Changing app.config as part of MSBuild script

I am using an MSBuild build file to build and test my application. 我正在使用MSBuild构建文件来构建和测试我的应用程序。 As part of the process I would like to change the path and name of the log file (setting in app.config). 作为该过程的一部分,我想更改日志文件的路径和名称(在app.config中设置)。 What is the easiest way to do it (I have the xpath to the value that needs to be changed)? 最简单的方法是什么(我有需要更改的值的xpath)?

您可以在http://msbuildtasks.tigris.org/查看MSBuild社区任务项目。这是一个名为XmlUpdate的任务,它可以完全满足您的需求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM