Skip to content

Instantly share code, notes, and snippets.

@ialhashim
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ialhashim/8d882a53e67e5df01b95 to your computer and use it in GitHub Desktop.
Save ialhashim/8d882a53e67e5df01b95 to your computer and use it in GitHub Desktop.
Fixing Microsoft Visual Studio 2013 and Qt x64
# Install NuGet to run inside VS
# Get VC project files
$include = @("*.vcxproj","*.sln")
$projectFiles = gci . -recurse -force -include $include
foreach ($file in $projectFiles) {
(get-content $file) | % { $_ -creplace 'Win32', 'x64' } | set-content $file
(get-content $file) | % { $_ -creplace '%40QMAKE_SUBSYSTEM_SUFFIX%40', '' } | set-content $file
}
# Older version
#(gc $file) -replace 'Win32','x64' | sc $file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment