Skip to content

Commit 2e94094

Browse files
committed
use Trim() to ensure productVersion is string
1 parent 473e621 commit 2e94094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ function Find-MakeAppx() {
521521
$makeappx
522522
}
523523

524-
$productVersion = ((Get-Content $PSScriptRoot/dsc/Cargo.toml) -match '^version\s*=\s*') -replace 'version\s*=\s*"(.*?)"', '$1'
524+
$productVersion = (((Get-Content $PSScriptRoot/dsc/Cargo.toml) -match '^version\s*=\s*') -replace 'version\s*=\s*"(.*?)"', '$1').Trim()
525525

526526
if ($packageType -eq 'msixbundle') {
527527
if (!$IsWindows) {

0 commit comments

Comments
 (0)