Xake is a build utility that uses the full power of the F# programming language. Xake is inspired by shake build tool.
The simple script looks like:
#r "nuget: Xake"
open Xake
open Xake.Dotnet
do xakeScript {
rules [
"main" <== ["helloworld.exe"]
"helloworld.exe" ..> csc {src !!"helloworld.cs"}
]
}
This script compiles helloworld assembly from helloworld.cs file.
Make sure dotnet SDK 7.0+ is installed.
-
Clone the project:
git clone http://github.com/xakebuild/xake
-
Run the "Hello world" build sctipt:
cd samples dotnet fsi gettingstarted.fsx
dotnet fsi features.fsx
- See the features.fsx script for various samples.
- We have the introduction page for you to learn more about Xake.
- And there're the documentation notes for more details.
Once you cloned the repository you are ready to compile and test the binaries:
dotnet fsi build.fsx -- -- build test
... or use build.cmd
(build.sh
) in the root folder
This is untested and mono nowadays is poorly explored territory for me.
Make sure mono with F# is installed and root certificates are imported:
sudo apt-get install mono-complete
sudo mozroots --import --sync
TBD
See documentation for more details.
Xake requires 'pkg-config' to locate mono runtime. Pkg-config utility is deployed with mono, but it's not included in $PATH. The options available are described on monobjc mailing list