File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed
Expand file tree Collapse file tree 2 files changed +44
-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+ $Env: VisualStudioVersion = " 11.0"
22+ $Env: DevToolsVersion = " 110"
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:VS120COMNTOOLS).Value
12+ $batchFile = [System.IO.Path ]::Combine($vs120comntools , " vsvars32.bat" )
13+ Get-Batchfile $BatchFile
14+ }
15+
16+ " Initializing Casablanca Powershell VS2013 Environment"
17+
18+ # get VS tools
19+ VsVars32
20+
21+ $Env: VisualStudioVersion = " 12.0"
22+ $Env: DevToolsVersion = " 120"
You can’t perform that action at this time.
0 commit comments