开发者

Passing MSBuild Parameters to Web.config XDT Transformation

开发者 https://www.devze.com 2023-01-28 00:06 出处:网络
I need to pass some parameters which should be used during XDT Transformation of my Web Application projects.

I need to pass some parameters which should be used during XDT Transformation of my Web Application projects.

Creating multiple Web.(configuration).config is not enough for me.

Is there anywa开发者_运维问答y to do that ?


You could use something like the Detokenise task (from the MSBuild Extension pack http://www.msbuildextensionpack.com/).

This would allow you to perform some token replacement in your config transformation files (web.[configuration].config) prior to running the Transform task.

0

精彩评论

暂无评论...
验证码 换一张
取 消