diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index edf37ef9e..5efd6f389 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -41,7 +41,7 @@ jobs:
# CI workers do not supporter older Visual Studio versions. Fix projects to target newer available version.
gci -recurse -filter "*.vcxproj" | ForEach-Object {
(Get-Content $_.FullName) -Replace "v\d{3}","v143" | Set-Content -Path $_.FullName
- (Get-Content $_.FullName) -Replace "[\d\.]+","$(LatestTargetPlatformVersion)" | Set-Content -Path $_.FullName
+ (Get-Content $_.FullName) -Replace "[\d\.]+","\$(LatestTargetPlatformVersion)" | Set-Content -Path $_.FullName
}
# Not using matrix here because it would inflate job count too much. Check out and setup is done for every job and that makes build times way too long.