Note: There are other variants (as branches in this repository) to choose from as well as other installation options
This repository shows how to bootstrap FAKE from nothing.
The fake.sh and fake.cmd scripts will:
- install .NET Core with the provided install scripts (https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script)
- restore FAKE as local cli tool via
dotnet tool restore - redirect the given arguments
fake <args>todotnet fake <args>.
If dotnet is already a given you can edit the scripts accordingly.
Usage:
Unix (or git bash on windows after dotnet/cli#8491)
git clone https://github.com/matthid/fake-bootstrap.git
cd fake-bootstrap
./fake.sh run myscript.fsx Windows (powershell/cmd)
git clone https://github.com/matthid/fake-bootstrap.git
cd fake-bootstrap
.\fake.cmd run myscript.fsxTo upgrade to latest packages, just delete myscript.fsx.lock and run fake again.