Skip to content

Commit cd6cc06

Browse files
authored
Update string to account for new changes (#285)
1 parent 7ab543b commit cd6cc06

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 = 'packages\Microsoft.WindowsAppSDK.' + $WinAppSDKVersion + '\'
16-
$oldVersionString = 'packages\\Microsoft.WindowsAppSDK.[-.0-9a-zA-Z]*\\'
15+
$newVersionString = '$(NugetPackageDirectory)\Microsoft.WindowsAppSDK.' + $WinAppSDKVersion + '\'
16+
$oldVersionString = '$(NugetPackageDirectory)\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)