Skip to content

Instantly share code, notes, and snippets.

@cowlike
Last active March 19, 2019 19:48
Show Gist options
  • Save cowlike/6617c7564ec76bd3109644e8434daae4 to your computer and use it in GitHub Desktop.
Save cowlike/6617c7564ec76bd3109644e8434daae4 to your computer and use it in GitHub Desktop.
export APP=MyApp
dotnet new sln -o $APP
cd $APP
dotnet new console -n Main -o Main -lang f#
dotnet new xunit -n Tests -o Tests -lang f#
dotnet sln add Tests/Tests.fsproj Main/Main.fsproj
dotnet add Tests/Tests.fsproj reference Main/Main.fsproj
dotnet add Tests/Tests.fsproj package unquote
# dotnet add Main/Main.fsproj package System.Composition
dotnet test
dotnet run -p Main/Main.fsproj
# if it's a web app/service:
dotnet watch --project Main/Main.fsproj run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment