Template for F# project, distributed under MIT License
-
Click the above [Use this Template] button in GitHub website.
-
Clone your project
$ git clone <URL> $ cd <ProjectName>
-
Setup Template
$ dotnet tool restore $ dotnet fake build -t Setup # update tools and dependencies, remove sample projects -
Change CI Badges in README.md
- Replace
wraikny/FsTemplateto<OWNER>/<REPO> - Set your own AppVeyor badge ID
- If you don't use a CI service, comment out it from the below table.
- Replace
-
Create Your project: Create Project
-
Remove this FsTemplate Usage from here
-
$ git add --all $ git commit --amend # as initial commit
| Github Actions | |
| Travis CI | |
| AppVeyor |
.NET Core 3.1
https://dotnet.microsoft.com/download
$ dotnet --version
3.1.201$ dotnet tool restore$ dotnet fake build # Build all projects as Release
$ # or
$ dotnet build --project src/SampleApp [-c {Debug|Release}]$ dotnet run --project src/SampleApp [-c {Debug|Release}]$ dotnet fake build -t Test
$ #or
$ dotnet run --project tests/SampleTestScripting at build.fsx.
$ dotnet fake build -t Clean # Run "Clean" Target
$ dotnet fake build # Run Default Taret$ # Application
$ dotnet new console -lang=f# -o src/SampleApp
$ # Library
$ dotnet new classlib -lang=f# -o src/SampleLib$ dotnet new console -lang=f# -o tests/SampleTest
$ cd tests/SampleTest
$ dotnet add package Expecto
$ dotnet add package Expecto.FsCheck
and then, Add Project Name to build.fsx.
$ dotnet new sln
$ dotnet sln add src/SampleApp
$ dotnet sln add src/SampleLib$ dotnet fake build -t Tooland then, commit .config/dotnet-tools.json.