Skip to content

Instantly share code, notes, and snippets.

@ftes
Last active January 21, 2016 17:53
Show Gist options
  • Save ftes/64ca74ebdde77a26385f to your computer and use it in GitHub Desktop.
Save ftes/64ca74ebdde77a26385f to your computer and use it in GitHub Desktop.
Use v110 platform toolset instead of inten in all .vcxproj files located (recursively) in current directory
Get-Childitem -recurse -Filter "*.vcxproj" | `
Foreach-Object {
set fileName $_.FullName
set tmp GetTempFileName
cat $fileName | %{$_ -replace "\<PlatformToolset\>Intel C\+\+ Compiler XE 13\.0\<\/PlatformToolset\>","<PlatformToolset>v110</PlatformToolset>"} | Out-File -Encoding ASCII $tmp
del $fileName
mv $tmp $fileName
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment