diff --git a/scripts/appveyor/clear_project_configuration.ps1 b/scripts/appveyor/clear_project_configuration.ps1 index 04be8f36..1bc7f59f 100644 --- a/scripts/appveyor/clear_project_configuration.ps1 +++ b/scripts/appveyor/clear_project_configuration.ps1 @@ -4,5 +4,6 @@ $replaceTo = "None" Get-ChildItem -Path 'projects\' *.vcxproj | ForEach-Object { $filePath = 'projects\' + $_ Copy-Item -Path $filePath -Destination ($filePath + '.template') - Get-Content ($filePath + '.template') | ForEach-Object { $_ -replace $replace, $replaceTo } > $filePath + Get-Content ($filePath + '.template') -Encoding UTF8 | ForEach-Object { $_ -replace $replace, $replaceTo } | Out-File $filePath -Encoding UTF8 + Remove-Item -Path ($filePath + '.template') }