This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.XdtTransform.
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