Capture the final build version field from the complete version field

This commit is contained in:
Raghu Shantha [MSFT] committed 2016-06-02 12:54:04 -07:00
1 parent be3a146443
commit 5a8e33d756
1 file changed
+2 -1
+2 -1
View File
@@ -1053,10 +1053,11 @@ function New-AppxPackage
)
Write-Verbose "Extract the version in the form of a.b.c.d for $PackageVersion"
$PackageVersionTokens = $PackageVersion.Split('-')
$PackageVersion = ([regex]::matches($PackageVersion, "\d+(\.\d+)+"))[0].value
# Need to add the last version field for makeappx
$PackageVersion = $PackageVersion + '.0'
$PackageVersion = $PackageVersion + '.' + $PackageVersionTokens[1]
Write-Verbose "Package Version is $PackageVersion"
$win10sdkBinPath = "${env:ProgramFiles(x86)}\Windows Kits\10\bin\x64"