File tree Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Expand file tree Collapse file tree 2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,19 @@ function Get-Batchfile ($file) {
8
8
9
9
function VsVars32 ()
10
10
{
11
- $vs100comntools = (Get-ChildItem env:VS110COMNTOOLS).Value
12
- $batchFile = [System.IO.Path ]::Combine($vs100comntools , " vsvars32.bat" )
11
+ $vs110comntools = (Get-ChildItem env:VS110COMNTOOLS).Value
12
+ $batchFile = [System.IO.Path ]::Combine($vs110comntools , " vsvars32.bat" )
13
13
Get-Batchfile $BatchFile
14
14
}
15
15
16
16
" Initializing Casablanca Powershell VS2012 Environment"
17
17
18
18
# get VS tools
19
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"
Original file line number Diff line number Diff line change
1
+ Param ([string ]$TfsWorkspace = ' ' )
2
+
3
+ function Get-Batchfile ($file ) {
4
+ $cmd = " `" $file `" & set"
5
+ cmd / c $cmd | Foreach-Object {
6
+ $p , $v = $_.split (' =' )
7
+ Set-Item - path env:$p - value $v
8
+ }
9
+ }
10
+
11
+ function VsVars32 ()
12
+ {
13
+ $vs100comntools = (Get-ChildItem env:VS100COMNTOOLS).Value
14
+ $batchFile = [System.IO.Path ]::Combine($vs100comntools , " vsvars32.bat" )
15
+ Get-Batchfile $BatchFile
16
+ }
17
+
18
+ " Initializing Casablanca Powershell VS2010 Environment"
19
+
20
+ # get VS tools
21
+ " Calling vsvars32"
22
+ VsVars32
23
+
24
+ # set environment variable to select between Dev10 and Dev11 projects in the various dirs.proj
25
+ $Env: DevToolsVersion = " 100"
You can’t perform that action at this time.
0 commit comments