Skip to content

Commit d63aea5

Browse files
committed
Added dev14 DevToolsVersion and powershell script
1 parent 3e37f34 commit d63aea5

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

Build/Common.Build.settings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
<TargetsPath>$(BuildRoot)\Build</TargetsPath>
3939
<OsVersion>$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion@CurrentVersion)</OsVersion>
4040
<!--If Dev11 and Dev12 are both installed, the default is to build Dev12. This can be overridden by setting the DevToolsVersion variable in powershell-->
41+
<DevToolsVersion Condition="'$(DevToolsVersion)' == '' And '$(VS140COMNTOOLS)' != ''">140</DevToolsVersion>
4142
<DevToolsVersion Condition="'$(DevToolsVersion)' == '' And '$(VS120COMNTOOLS)' != ''">120</DevToolsVersion>
4243
<DevToolsVersion Condition="'$(DevToolsVersion)' == '' And '$(VS110COMNTOOLS)' != ''">110</DevToolsVersion>
4344
<!-- ARM tools are installed in $(FrameworkSdkDir)\DesignTime\CommonConfiguration\Neutral\Windows.desktop.arm.props -->

setup_ps_env_VS2014.ps1

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
function Get-Batchfile ($file) {
2+
$cmd = "@echo off & `"$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+
$vs140comntools = (Get-ChildItem env:VS140COMNTOOLS).Value
12+
$batchFile = [System.IO.Path]::Combine($vs140comntools, "vsvars32.bat")
13+
Get-Batchfile $BatchFile
14+
}
15+
16+
"Initializing Casablanca Powershell VS2014 Environment"
17+
18+
# get VS tools
19+
VsVars32
20+
21+
$Env:VisualStudioVersion = "14.0"
22+
$Env:DevToolsVersion = "140"

0 commit comments

Comments
 (0)