Skip to content

Commit

Permalink
add -warnaserror to dotnet commands
Browse files Browse the repository at this point in the history
  • Loading branch information
rkm committed Oct 4, 2024
1 parent 1be15ac commit d1e4ac8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/smi/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
cmd = (
"dotnet",
"build",
"-warnaserror",
"--use-current-runtime",
"--configuration", args.configuration,
"--verbosity", "quiet",
Expand Down
1 change: 1 addition & 0 deletions bin/smi/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
cmd = (
"dotnet",
"publish",
"-warnaserror",
"--use-current-runtime",
"--configuration", args.configuration,
"--no-build" if args.no_build else "",
Expand Down
1 change: 1 addition & 0 deletions bin/smi/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
"--settings", "coverage.settings",
"--",
"dotnet", "test",
"-warnaserror",
"--configuration", args.configuration,
"--no-build" if args.no_build else "",
*unit_only,
Expand Down

0 comments on commit d1e4ac8

Please # to comment.