Skip to content

Commit 29c2a7f

Browse files
committed
Change from using SemVer to LegacySemVer as appropriate.
1 parent 1d27792 commit 29c2a7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.cake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Task("Build")
6262
Configuration = configuration,
6363
EnvironmentVariables = new Dictionary<string, string>
6464
{
65-
{ "Version", gitVersion.SemVer },
65+
{ "Version", gitVersion.LegacySemVer },
6666
{ "SourceRevisionId", gitVersion.Sha }
6767
}
6868
};
@@ -298,7 +298,7 @@ Task("PackageNugetPackages")
298298
NoBuild = true,
299299
IncludeSymbols = true,
300300
MSBuildSettings = new DotNetCoreMSBuildSettings()
301-
.WithProperty("PackageVersion", gitVersion.SemVer)
301+
.WithProperty("PackageVersion", gitVersion.LegacySemVer)
302302
};
303303
DotNetCorePack(projectPath, settings);
304304
}
@@ -326,7 +326,7 @@ Task("PushToMyget")
326326

327327
foreach (var project in projects)
328328
{
329-
var packageFileName = $"{project}.{gitVersion.SemVer}.nupkg";
329+
var packageFileName = $"{project}.{gitVersion.LegacySemVer}.nupkg";
330330
var packageFile = artifactsPackagesDirectory.CombineWithFilePath(packageFileName);
331331
packageFiles.Add(packageFile);
332332
}

0 commit comments

Comments
 (0)