In this tutorial, you create a console application, run its tests, and create packages for Windows, macOS, and Linux.
Run this command to install the template from NuGet:
|
The command installs the mini-scaffold template.
Replace MyGithubUsername with your GitHub username.
Run this command:
|
The command creates a directory named MyCoolNewApp.
Open that directory:
|
The generated solution contains these files:
MyCoolNewApp.slnx, the solution file.src/MyCoolNewApp/MyCoolNewApp.fsproj, the application project.tests/MyCoolNewApp.Tests/MyCoolNewApp.Tests.fsproj, the test project.build/, the directory with the FAKE build scripts.build.cmd and build.sh, the build commands.On macOS or Linux, run this command:
|
On Windows, run this command:
|
The default target, CreatePackages, restores dependencies, builds the solution, runs the tests, and creates packages.
The build output reports the result of each target.
After the build succeeds, check dist/ for six ZIP packages.
The packages support Windows, macOS, and Linux on x64 and ARM64.
The console output reference describes the generated files and package formats.