Skip to content

Commit

Permalink
Fix regex in UpdateVersions.ps1 (#286)
Browse files Browse the repository at this point in the history
* fix regex

* update regex
  • Loading branch information
kythant authored Feb 8, 2023
1 parent cd6cc06 commit 7ab9ad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UpdateVersions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Get-ChildItem -Recurse packages.config -Path $PSScriptRoot | foreach-object {
}

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

0 comments on commit 7ab9ad6

Please sign in to comment.