Skip to content

Commit 18f6cb6

Browse files
committed
extract restore build target
1 parent 3b386d0 commit 18f6cb6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

targets/Program.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
using static Bullseye.Targets;
22
using static Targets.Command;
33

4-
Target("format", () => RunAsync("dotnet", "format --verify-no-changes"));
4+
Target("restore", () => RunAsync("dotnet", "restore"));
55

6-
Target("build", () => RunAsync("dotnet", "build --configuration Release"));
6+
Target("format", dependsOn: ["restore",], () => RunAsync("dotnet", "format --verify-no-changes --no-restore"));
7+
8+
Target("build", dependsOn: ["restore",], () => RunAsync("dotnet", "build --configuration Release --no-restore"));
79

810
Target("test", dependsOn: ["build",], () => RunAsync("dotnet", "test --configuration Release --no-build"));
911

0 commit comments

Comments
 (0)