diff --git a/.pipelines/templates/nupkg.yml b/.pipelines/templates/nupkg.yml
index 868d766a3b..58ce995f75 100644
--- a/.pipelines/templates/nupkg.yml
+++ b/.pipelines/templates/nupkg.yml
@@ -120,7 +120,7 @@ jobs:
$refAssemblyFolder = Join-Path '$(System.ArtifactsDirectory)' 'RefAssembly'
$null = New-Item -Path $refAssemblyFolder -Force -Verbose -Type Directory
- Start-PSBuild -Clean -Runtime linux-x64 -Configuration Release
+ Start-PSBuild -Clean -Runtime linux-x64 -Configuration Release -ReleaseTag $(ReleaseTagVar)
$sharedModules | Foreach-Object {
$refFile = Get-ChildItem -Path "$(PowerShellRoot)\src\$_\obj\Release\net8.0\refint\$_.dll"
@@ -136,7 +136,7 @@ jobs:
}
}
- Start-PSBuild -Clean -Runtime win7-x64 -Configuration Release
+ Start-PSBuild -Clean -Runtime win7-x64 -Configuration Release -ReleaseTag $(ReleaseTagVar)
$winOnlyModules | Foreach-Object {
$refFile = Get-ChildItem -Path "$(PowerShellRoot)\src\$_\obj\Release\net8.0\refint\*.dll"
diff --git a/PowerShell.Common.props b/PowerShell.Common.props
index 72fbf3c86a..fe03cfbc87 100644
--- a/PowerShell.Common.props
+++ b/PowerShell.Common.props
@@ -58,6 +58,11 @@
$(ReleaseTagVersionPart).$(ReleaseTagSemVersionPart)
$(ReleaseTagVersionPart).$(GAIncrementValue)
+
+ $(PSCoreFileVersion)
+ $([System.Version]::Parse($(PSCoreFileVersion)).Major).$([System.Version]::Parse($(PSCoreFileVersion)).Minor).6.$([System.Version]::Parse($(PSCoreFileVersion)).Revision)
@@ -84,7 +89,7 @@
-->
$(PSCoreFileVersion)