XdtTransformationAlias.

XdtTransformConfig(ICakeContext, FilePath, FilePath, FilePath) Method

Summary

Transforms configuration files using XDT Transform library.

Syntax

public static void XdtTransformConfig(this ICakeContext context, FilePath sourceFile, FilePath transformFile, FilePath targetFile)

Examples

 var target = Argument("target", "Default");

 Task("TransformConfig")
   .Does(() => {
     var sourceFile = File("web.config");
     var transformFile = File("web.release.config");
     var targetFile = File("web.target.config");
     XdtTransformConfig(sourceFile, transformFile, targetFile);
 });

 RunTarget(target);

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
sourceFile FilePath Source file to be transformed.
transformFile FilePath Transformation file.
targetFile FilePath Output file name for the transformed file.

Return Value

Type Description
void