forked from FakeBuild/Xake
-
Notifications
You must be signed in to change notification settings - Fork 0
Tasks | Misc file tasks
olegz edited this page Mar 16, 2026
·
2 revisions
Writes a text string to the current target file:
"readme.txt" ..> writeText "This file was generated by the build."In a recipe:
target "version.txt" {
let! ver = vars.Version
do! writeText ver
}Copies a source file to the current target:
"bin/app.config" ..> copyFrom "src/App.config"Copies a file to a specific destination:
do! copyFile "src/App.config" "bin/App.exe.config"Reads the contents of a text file and records a dependency:
let! content = readText "version.txt"Reads all lines from a text file:
let! lines = readAllLines "packages.txt"Reads the binary contents of a file:
let! data = readAllBytes "image.png"