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
One of the reasons for config file bloat is the addition of environment-specific transforms for config values that only differ by the environment name.
In this scenario, the config key in the base web.config can be converted to a tokenized string. The value for the token is input during the transformation process (can be a UI dialog for Preview Transform operation in VS, and command line args during the transformation process on build server) and is replaced during transformation appropriately.
in web.config and there would be no repetitions of this key in the environment-specific transforms. The {ENVIRONMENT} token would be replaced with the input value during transformation. The transformation process should be able to handle multiple token replacement (for e.g. with delimiter separated list of substitution values, like ENVIRONMENT:systemtest;USER:stuser; or similar).
One of the reasons for config file bloat is the addition of environment-specific transforms for config values that only differ by the environment name.
For e.g. the below config key in web.config
is repeated in web.systemtest.config as
and in web.production.config as
In this scenario, the config key in the base web.config can be converted to a tokenized string. The value for the token is input during the transformation process (can be a UI dialog for Preview Transform operation in VS, and command line args during the transformation process on build server) and is replaced during transformation appropriately.
So, the above e.g. would become
in web.config and there would be no repetitions of this key in the environment-specific transforms. The {ENVIRONMENT} token would be replaced with the input value during transformation. The transformation process should be able to handle multiple token replacement (for e.g. with delimiter separated list of substitution values, like ENVIRONMENT:systemtest;USER:stuser; or similar).
The command-line Config Transform Tool (http://ctt.codeplex.com/) has similar functionality (http://outcoldman.com/en/archive/2010/09/09/config-transformation-tool-parameters-support/). Having this functionality in SlowCheetah would bring this to Visual Studio as well as the build process.
The text was updated successfully, but these errors were encountered: