Skip to content

Commit d355b74

Browse files
committed
Fix Nuget package version in build.cake.
1 parent 8808cfd commit d355b74

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.cake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,11 @@ Task("PackageNugetPackages")
294294
var settings = new DotNetCorePackSettings
295295
{
296296
Configuration = configuration,
297-
OutputDirectory = artifactsPackagesDirectory
297+
OutputDirectory = artifactsPackagesDirectory,
298+
NoBuild = true,
299+
IncludeSymbols = true,
300+
MSBuildSettings = new DotNetCoreMSBuildSettings()
301+
.WithProperty("PackageVersion", gitVersion.SemVer)
298302
};
299303
DotNetCorePack(projectPath, settings);
300304
}

0 commit comments

Comments
 (0)