Skip to content

Commit f8df06c

Browse files
author
Oren Novotny
committed
force vs 2015
1 parent c093c55 commit f8df06c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build/default.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ Framework "4.6x86"
2121

2222
task default -depends ?
2323

24+
Task SetEnvironment {
25+
Exec { & $env:VS140COMNTOOLS\vsvars32.bat }
26+
}
27+
2428
task UpdateHeaders -description "Updates the headers in *.cs files" {
2529
$header = [System.IO.File]::ReadAllText("$buildDir\header.txt")
2630

@@ -50,7 +54,7 @@ task Clean -description "Clean the output folder" {
5054
New-Item -Path $binDir -ItemType Directory | Out-Null
5155
}
5256

53-
task Setup -description "Setup environment" {
57+
task Setup -Depends SetEnvironment -description "Setup environment" {
5458
WriteColoredOutput -ForegroundColor Green "Restoring NuGet packages...`n"
5559

5660
Exec { .$nuget restore $packagesConfig "$sourceDir\UWP Community Toolkit.sln" } "Error pre-installing NuGet packages"

0 commit comments

Comments
 (0)