简体   繁体   中英

Perform token replacements using VS post-build event command?

I would like to "post-process" my app.config file and perform some token replacements after the project builds.

Is there an easy way to do this using a VS post-build event command?

(Yeah I know I could probably use NAnt or something, looking for something simple.)

Take a look at XmlPreProcess . We use it for producing different config files for our testing and live deployment packages. We execute it from a nant script as part of a continuous build but, since it's a console app, I see no reason why you coudn't add a call in your project's post-build event instead

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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