Skip to content

Commit 86ac528

Browse files
committed
Restore deleted file
1 parent 60cd1b9 commit 86ac528

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

setup_ps_env.ps1

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
function Get-Batchfile ($file) {
2+
$cmd = "`"$file`" & set"
3+
cmd /c $cmd | Foreach-Object {
4+
$p, $v = $_.split('=')
5+
Set-Item -path env:$p -value $v
6+
}
7+
}
8+
9+
function VsVars32()
10+
{
11+
$vs110comntools = (Get-ChildItem env:VS110COMNTOOLS).Value
12+
$batchFile = [System.IO.Path]::Combine($vs110comntools, "vsvars32.bat")
13+
Get-Batchfile $BatchFile
14+
}
15+
16+
"Initializing Casablanca Powershell VS2012 Environment"
17+
18+
# get VS tools
19+
VsVars32
20+
21+
# set VisualStudioVersion - this is set by vcvarsall.bat under VS 11 and is needed to correctly build
22+
# on a machine with both Dev10 and Dev11 installed.
23+
$Env:VisualStudioVersion = "11.0"
24+
25+
# set environment variable to select between Dev10 and Dev11 projects in the various dirs.proj
26+
$Env:DevToolsVersion = "110"

0 commit comments

Comments
 (0)