Created
July 11, 2016 14:16
-
-
Save tjrobinson/dff4d63f3342382c8718e98f65dbf323 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set environment variables for Visual Studio Command Prompt | |
# Based on: http://stackoverflow.com/questions/2124753/how-i-can-use-powershell-with-the-visual-studio-2010-command-prompt | |
$version=14 | |
pushd "c:\Program Files (x86)\Microsoft Visual Studio ${version}.0\Common7\Tools" | |
cmd /c "vsvars32.bat&set" | | |
foreach { | |
if ($_ -match "=") { | |
$v = $_.split("=") | |
set-item -force -path "ENV:\$($v[0])" -value "$($v[1])" | |
} | |
} | |
popd | |
write-host "`nVS${version} Command Prompt variables set." -ForegroundColor Yellow | |
Set-Alias build .\build.ps1 | |
try { $null = gcm pshazz -ea stop; pshazz init 'default' } catch { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment