Skip to content

Commit 7ab9ad6

Browse files
authored
Fix regex in UpdateVersions.ps1 (#286)
* fix regex * update regex
1 parent cd6cc06 commit 7ab9ad6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UpdateVersions.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Get-ChildItem -Recurse packages.config -Path $PSScriptRoot | foreach-object {
1212
}
1313

1414
Get-ChildItem -Recurse *.vcxproj -Path $PSScriptRoot | foreach-object {
15-
$newVersionString = '$(NugetPackageDirectory)\Microsoft.WindowsAppSDK.' + $WinAppSDKVersion + '\'
16-
$oldVersionString = '$(NugetPackageDirectory)\Microsoft.WindowsAppSDK.[-.0-9a-zA-Z]*\\'
15+
$newVersionString = '\Microsoft.WindowsAppSDK.' + $WinAppSDKVersion + '\'
16+
$oldVersionString = '\\Microsoft.WindowsAppSDK.[-.0-9a-zA-Z]*\\'
1717
$content = Get-Content $_.FullName -Raw
1818
$content = $content -replace $oldVersionString, $newVersionString
1919
Set-Content -Path $_.FullName -Value $content

0 commit comments

Comments
 (0)