Skip to content

benjamine/CFT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CFT

.net config file transformations tool

Usage

    # transform using a configuration name
    cft transform /path=. /configuration=Production

    # cascade transformation are supported (will apply Production, and then Production-Amazon if found)
    cft transform /path=. /configuration=Production-Amazon

    # dry run, doesn't touch files and throws an error if a file would be changed
    cft transform /path=. /configuration=Production /dry

    # get configuration name from different sources (priority is: parameter, file, env, default)
    cft transform /path=.  /configurationFile=configurationName.tmp /configurationEnv=CONFIGURATIONNAME /configurationDefault=Local

    # Run without params to see help
    cft

This tool will find all *.default.config files recursively and apply corresponding transformations when found.

Tokens

These tokens will be replaced at the end of transformation:

  • $configurationName$: the configuration name used to transform
  • $env:VARIABLE_NAME$: an environment variable

Nuget

Install as a nuget package: https://nuget.org/packages/cft/

To run this tool on prebuild event or on post-deploy, you'll need to find /packages/cft.x.x.x.x/ path. To make that easy you can install NugetToolsHelper package

About

.net config file transformations tool

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages