giraffe-fsharp / giraffe-template

A dotnet new template for Giraffe web applications.
Apache License 2.0
37 stars 22 forks source link

Build file on solution template #42

Open vitoladev opened 2 years ago

vitoladev commented 2 years ago

The template build file on the solution template fails to build if it isn't on the right project.

I think it would be better if the build file specified the right project for the operation, including explicitly the project's path.

Example:

Fails to build (build.sh)

#!/bin/sh
dotnet restore
dotnet build --no-restore
dotnet test  --no-build

Builds the solution correctly (build.sh)

#!/bin/sh
dotnet restore
dotnet build ./src/AppName --no-restore
dotnet test ./tests/AppName.Tests --no-build