Skip to content

Commit

Permalink
Fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
k94ll13nn3 committed Aug 27, 2018
1 parent 99570fe commit e4064f8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// DEPENDENCIES
//////////////////////////////////////////////////////////////////////

#tool GitVersion.CommandLine&version=4.0.0-beta0012
#tool GitVersion.CommandLine&version=4.0.0-beta0014
#tool OpenCover&version=4.6.519
#tool coveralls.io&version=1.4.2
#tool Wyam&version=1.5.0
Expand Down Expand Up @@ -87,10 +87,8 @@ Task("Set-Environment")
});

nugetVersion = version.NuGetVersion;
if(version.CommitsSinceVersionSource.HasValue && version.CommitsSinceVersionSource.Value != 0)
{
versionSuffix = "ci" + version.CommitsSinceVersionSource?.ToString()?.PadLeft(4, '0');
}
versionSuffix = version.NuGetVersion.Split("-").Skip(1).FirstOrDefault() ?? "";
Information("VersionSuffix " + versionSuffix);

Information("AssembyVersion " + version.AssemblySemVer);
Information("FileVersion " + version.AssemblySemFileVer);
Expand Down

0 comments on commit e4064f8

Please sign in to comment.