1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-12 15:50:08 +00:00
DirectXTex/.nuget/versioninfo.ps1
2020-01-23 15:58:52 -08:00

7 lines
284 B
PowerShell

param(
[string]$version
)
$versionComma = $version.Replace(".", ",")
$files = 'Texassemble\texassemble.rc', 'Texconv\Texconv.rc', 'Texdiag\texdiag.rc'
foreach ($file in $files) { (Get-Content $file).replace('1,0,0,0', $versionComma).replace('1.0.0.0', $version) | Set-Content $file }