Skip to content

Commit 65a4b34

Browse files
committed
Fix mono cake build issue
1 parent f1c37e0 commit 65a4b34

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build.cake

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ bool IsTagged = (BuildSystem.AppVeyor.Environment.Repository.Tag.IsTag &&
1515
bool IsMainGitVersionRepo = StringComparer.OrdinalIgnoreCase.Equals("gittools/gitversion", BuildSystem.AppVeyor.Environment.Repository.Name);
1616
bool IsPullRequest = BuildSystem.AppVeyor.Environment.PullRequest.IsPullRequest;
1717

18-
void Build(string configuration)
18+
void Build(string configuration, string nugetVersion, string semVersion, string version, string preReleaseTag)
1919
{
2020
if(IsRunningOnUnix())
2121
{
@@ -34,7 +34,8 @@ void Build(string configuration)
3434
.SetVerbosity(Verbosity.Minimal)
3535
.SetNodeReuse(false);
3636

37-
if (BuildSystem.AppVeyor.IsRunningOnAppVeyor) {
37+
if (BuildSystem.AppVeyor.IsRunningOnAppVeyor)
38+
{
3839
msBuildSettings = msBuildSettings
3940
.WithProperty("GitVersion_NuGetVersion", nugetVersion)
4041
.WithProperty("GitVersion_SemVer", semVersion)
@@ -49,7 +50,7 @@ Task("DogfoodBuild")
4950
.IsDependentOn("NuGet-Package-Restore")
5051
.Does(() =>
5152
{
52-
Build(configuration);
53+
Build(configuration, nugetVersion, semVersion, version, preReleaseTag);
5354
});
5455

5556
Task("Version")
@@ -86,7 +87,7 @@ Task("Build")
8687
.IsDependentOn("NuGet-Package-Restore")
8788
.Does(() =>
8889
{
89-
Build(configuration);
90+
Build(configuration, nugetVersion, semVersion, version, preReleaseTag);
9091
});
9192

9293
Task("Run-NUnit-Tests")

0 commit comments

Comments
 (0)