Skip to content

Commit b98290d

Browse files
committed
Fixed NuGet versioning and Symbols package
1 parent ee95a51 commit b98290d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

build.cake

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@ Task("Version")
2525
UpdateAssemblyInfo = true,
2626
OutputType = GitVersionOutput.BuildServer
2727
});
28-
versionInfo = GitVersion(new GitVersionSettings());
29-
30-
var updatedProject = System.IO.File.ReadAllText(bddfyProj)
31-
.Replace("1.0.0-*", versionInfo.NuGetVersion);
32-
33-
System.IO.File.WriteAllText(bddfyProj, updatedProject);
28+
versionInfo = GitVersion(new GitVersionSettings{ OutputType = GitVersionOutput.Json });
3429
});
3530

3631
Task("Build")
@@ -53,12 +48,13 @@ Task("Package")
5348
.Does(() => {
5449
var settings = new DotNetCorePackSettings
5550
{
51+
ArgumentCustomization = args=> args.Append(" --include-symbols /p:PackageVersion=" + versionInfo.NuGetVersion),
5652
OutputDirectory = outputDir,
5753
NoBuild = true
5854
};
59-
55+
6056
DotNetCorePack(bddfyProj, settings);
61-
57+
6258
var releaseNotesExitCode = StartProcess(
6359
@"tools\GitReleaseNotes\tools\gitreleasenotes.exe",
6460
new ProcessSettings { Arguments = ". /o artifacts/releasenotes.md" });

0 commit comments

Comments
 (0)