|
28 | 28 | } |
29 | 29 | }); |
30 | 30 |
|
31 | | -Target("restore", DependsOn("clean"), () => |
| 31 | +Target("restore", dependsOn: ["clean"], () => |
32 | 32 | { |
33 | 33 | Run("dotnet", "restore"); |
34 | 34 | }); |
35 | 35 |
|
36 | | -Target("build", DependsOn("restore"), () => |
| 36 | +Target("build", dependsOn: ["restore"], () => |
37 | 37 | { |
38 | 38 | Run("dotnet", "build " + |
39 | 39 | "--no-restore " + |
|
45 | 45 | $"--property InformationalVersion={version.InformationalVersion}"); |
46 | 46 | }); |
47 | 47 |
|
48 | | -Target("test", DependsOn("build"), () => |
| 48 | +Target("test", dependsOn: ["build"], () => |
49 | 49 | { |
50 | 50 | Run("dotnet", $"test --configuration {configuration} --no-restore --no-build"); |
51 | 51 | }); |
52 | 52 |
|
53 | | -Target("package", DependsOn("build", "test"), () => |
| 53 | +Target("package", dependsOn: ["build", "test"], () => |
54 | 54 | { |
55 | 55 | Run("dotnet", $"pack --configuration {configuration} --no-restore --no-build --output artifacts --property Version={version.SemVer}"); |
56 | 56 | }); |
57 | 57 |
|
58 | | -Target("zip", DependsOn("package"), () => |
| 58 | +Target("zip", dependsOn: ["package"], () => |
59 | 59 | { |
60 | 60 | var artifactPath = Path.Combine("artifacts", "machine-specifications"); |
61 | 61 | var dotnetPath = Path.Combine(artifactPath, "dotnet"); |
|
97 | 97 | Console.WriteLine($"Created {zipPath}"); |
98 | 98 | }); |
99 | 99 |
|
100 | | -Target("publish-nuget", DependsOn("package"), () => |
| 100 | +Target("publish-nuget", dependsOn: ["package"], () => |
101 | 101 | { |
102 | 102 | var githubToken = Environment.GetEnvironmentVariable("GITHUB_TOKEN"); |
103 | 103 |
|
|
117 | 117 | } |
118 | 118 | }); |
119 | 119 |
|
120 | | -Target("publish-zip", DependsOn("zip"), () => |
| 120 | +Target("publish-zip", dependsOn: ["zip"], () => |
121 | 121 | { |
122 | 122 | using var client = new HttpClient(); |
123 | 123 |
|
|
149 | 149 | } |
150 | 150 | }); |
151 | 151 |
|
152 | | -Target("publish", DependsOn("publish-nuget", "publish-zip")); |
| 152 | +Target("publish", dependsOn: ["publish-nuget", "publish-zip"]); |
153 | 153 |
|
154 | | -Target("default", DependsOn("zip")); |
| 154 | +Target("default", dependsOn: ["zip"]); |
155 | 155 |
|
156 | 156 | await RunTargetsAndExitAsync(args); |
157 | 157 |
|
|
0 commit comments