配置定义更新配置值的最佳实践 [英] Best practices of config value update for build definitions

查看:46
本文介绍了配置定义更新配置值的最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问问是否有人在Visual Studio Team Services构建期间对Web API .config文件值进行了更改(已替换为其他值)?有什么最佳实践或方法可以实现吗?

I wanted to ask if somebody have ever made changes to Web API .config file values during the Visual Studio Team Services build (replaced with other values)? Are there any best practices or way how I can achieve it?

推荐答案

除了使用Config Transformations,还有许多扩展可以使您在这方面的生活更轻松:

Apart from using Config Transformations, there are a number of extensions that can make your life easier in this respect:

  • Config transformation extensions
  • Token replace extensions
  • And there's one that uses naming by convention to make your life easier

这篇关于配置定义更新配置值的最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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