Skip to content

Commit

Permalink
add format build step
Browse files Browse the repository at this point in the history
  • Loading branch information
adamralph committed Dec 25, 2023
1 parent 2145722 commit 0254033
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail

echo "${0##*/}": Formatting...
dotnet format --verify-no-changes

echo "${0##*/}": Building...
dotnet build --configuration Release --nologo

Expand Down
3 changes: 3 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@echo Off

echo %~nx0: Formatting...
dotnet format --verify-no-changes || goto :error

echo %~nx0: Building...
dotnet build --configuration Release --nologo || goto :error

Expand Down

0 comments on commit 0254033

Please sign in to comment.