You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 17, 2020. It is now read-only.
I want to transform placeholder in the web.config and populate it with MSBuild properties, either getting value from parameter, property attribute, or azure pipeline variables. The original goal is replacing placeholder (using format [CAPITALIZED_NAME]) within config files. The main source for replacing placeholders are from azure pipeline variables. It works by using example code. But sometimes, I need to test the build in my local using MSBuild parameter, making sure it will not break the build.
Transform task
Well, I need to define each transform XML in individual project (for file transformation). This will be harder to maintain for many projects. And the variable substitutions only support certain place.
Magic Chunks
This task suports more than transform task. But when I define single global source config for all projects, it adds new config value which's not defined in original web.config, breaking the config.
Expectation
All msbuild parameter prosessed from:
From parameter (/p:Name=Value pair)
From property element (<PropertyGroup><Name>Value</Name></PropertyGroup>)
Description
I want to transform placeholder in the web.config and populate it with MSBuild properties, either getting value from parameter, property attribute, or azure pipeline variables. The original goal is replacing placeholder (using format
[CAPITALIZED_NAME]) within config files. The main source for replacing placeholders are from azure pipeline variables. It works by using example code. But sometimes, I need to test the build in my local using MSBuild parameter, making sure it will not break the build.Example code
What I've tried:
Well, I need to define each transform XML in individual project (for file transformation). This will be harder to maintain for many projects. And the variable substitutions only support certain place.
This task suports more than transform task. But when I define single global source config for all projects, it adds new config value which's not defined in original web.config, breaking the config.
Expectation
All msbuild parameter prosessed from:
/p:Name=Valuepair)<PropertyGroup><Name>Value</Name></PropertyGroup>)Actual
Only azure pipeline variables are parsed