-
Install
giraffe-template
dotnet new -i "giraffe-template::*"
-
Scaffold project
dotnet new giraffe --ViewEngine none --IncludeTests --UsePaket --language F#
Need to specify
-language F#
until SDK >= 2.1.300 due to a bug -
(If using VS Code) Configure
tasks.json
Replace
"command"
with the following JSON"command": "./build.sh", "windows": { "command": ".\\build.bat" },
This configures build support for Windows, Linux, and OSX.
At this point, you can build with
Ctrl+Shift+B
and run default project to run the Giraffe sample API app -
Install and Configure FAKE 5
-
Install Chocolatey
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
-
Install FAKE
choco install fake -pre
There are bootstrapping options as well if preinstalling globally is not an option. See https://fake.build/fake-gettingstarted.html#Install-FAKE.
-
Create
build.fsx
-
Modify build task in
tasks.json
to run build scriptfake run build.fsx
-
Initial implementation cleans, builds, runs tests, then publishes -- all in debug configuration
-
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.