diff --git a/.pipelines/templates/nupkg.yml b/.pipelines/templates/nupkg.yml
index f9238bb09e..be4b704557 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\net9.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\net9.0\refint\*.dll"
diff --git a/PowerShell.Common.props b/PowerShell.Common.props
index b73b3e60a7..28bc08cc5d 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).0.$([System.Version]::Parse($(PSCoreFileVersion)).Revision)
@@ -84,7 +89,7 @@
-->
$(PSCoreFileVersion)