Skip to content

Commit c04fbf9

Browse files
fix
1 parent 5648756 commit c04fbf9

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

build/build.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
}
2929
});
3030

31-
Target("restore", DependsOn("clean"), () =>
31+
Target("restore", dependsOn: ["clean"], () =>
3232
{
3333
Run("dotnet", "restore");
3434
});
3535

36-
Target("build", DependsOn("restore"), () =>
36+
Target("build", dependsOn: ["restore"], () =>
3737
{
3838
Run("dotnet", "build " +
3939
"--no-restore " +
@@ -45,17 +45,17 @@
4545
$"--property InformationalVersion={version.InformationalVersion}");
4646
});
4747

48-
Target("test", DependsOn("build"), () =>
48+
Target("test", dependsOn: ["build"], () =>
4949
{
5050
Run("dotnet", $"test --configuration {configuration} --no-restore --no-build");
5151
});
5252

53-
Target("package", DependsOn("build", "test"), () =>
53+
Target("package", dependsOn: ["build", "test"], () =>
5454
{
5555
Run("dotnet", $"pack --configuration {configuration} --no-restore --no-build --output artifacts --property Version={version.SemVer}");
5656
});
5757

58-
Target("zip", DependsOn("package"), () =>
58+
Target("zip", dependsOn: ["package"], () =>
5959
{
6060
var artifactPath = Path.Combine("artifacts", "machine-specifications");
6161
var dotnetPath = Path.Combine(artifactPath, "dotnet");
@@ -97,7 +97,7 @@
9797
Console.WriteLine($"Created {zipPath}");
9898
});
9999

100-
Target("publish-nuget", DependsOn("package"), () =>
100+
Target("publish-nuget", dependsOn: ["package"], () =>
101101
{
102102
var githubToken = Environment.GetEnvironmentVariable("GITHUB_TOKEN");
103103

@@ -117,7 +117,7 @@
117117
}
118118
});
119119

120-
Target("publish-zip", DependsOn("zip"), () =>
120+
Target("publish-zip", dependsOn: ["zip"], () =>
121121
{
122122
using var client = new HttpClient();
123123

@@ -149,9 +149,9 @@
149149
}
150150
});
151151

152-
Target("publish", DependsOn("publish-nuget", "publish-zip"));
152+
Target("publish", dependsOn: ["publish-nuget", "publish-zip"]);
153153

154-
Target("default", DependsOn("zip"));
154+
Target("default", dependsOn: ["zip"]);
155155

156156
await RunTargetsAndExitAsync(args);
157157

0 commit comments

Comments
 (0)