Magic_Game/scripts/appveyor/clear_project_configuration...

10 lines
508 B
PowerShell
Raw Normal View History

2019-08-18 22:49:44 +08:00
$replace = "<DebugInformationFormat>EditAndContinue</DebugInformationFormat>"
$replaceTo = "<DebugInformationFormat>None</DebugInformationFormat>"
Get-ChildItem -Path 'projects\' *.vcxproj | ForEach-Object {
$filePath = 'projects\' + $_
Copy-Item -Path $filePath -Destination ($filePath + '.template')
2019-08-18 23:19:51 +08:00
Get-Content ($filePath + '.template') -Encoding UTF8 | ForEach-Object { $_ -replace $replace, $replaceTo } | Out-File $filePath -Encoding UTF8
Remove-Item -Path ($filePath + '.template')
2019-08-18 22:49:44 +08:00
}