Skip to content

ScottHutchinson/mini-scaffold-sample

Repository files navigation

MiniScaffold Example in an F# console application for dotnet core

This sample demonstrates how to use the MiniScaffold template to create an F# console application for dotnet core.

Steps to re-create this project from scratch

  1. Install the MiniScaffold template by running this CLI command:
        dotnet new -i "MiniScaffold::*"

  2. Create a new project by running this CLI command:
        dotnet new mini-scaffold -lang f# -n mini-scaffold-sample --githubUsername ScottHutchinson

  3. Add this line above the TargetFrameworks element in the .fsproj file:
        <OutputType>Exe</OutputType>

  4. Rename the file Library.fs as Program.fs (not strictly necessary).

  5. Change the namespace to a module instead.

  6. Add this function:
        [<EntryPoint>] let main argv = printfn "Hello World from Mini Scaffold!" 0 // return an integer exit code

  7. Change the target framework from multiple targets to a single target:
        <TargetFramework>netcoreapp2.0</TargetFramework>

  8. Add this line to the top of the paket.dependencies file to specify a particular version of paket:
        version 5.148.0

Related links

https://github.com/TheAngryByrd/MiniScaffold

https://fsprojects.github.io/Paket/bootstrapper.html#Magic-mode

About

MiniScaffold Example for an F# console application for dotnet core

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published