File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
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"
You can’t perform that action at this time.
0 commit comments