File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff 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
3631Task ( "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" } ) ;
You can’t perform that action at this time.
0 commit comments