Add VS2015 support back to the uwp scripts
authorWes Haggard <Wes.Haggard@microsoft.com>
Mon, 9 Oct 2017 23:13:17 +0000 (16:13 -0700)
committerWes Haggard <Wes.Haggard@microsoft.com>
Mon, 9 Oct 2017 23:19:11 +0000 (16:19 -0700)
Official build machines don't yet have VS2017 so adding back VS2015
support until that is fixed

Commit migrated from https://github.com/dotnet/core-setup/commit/82f5a2c230b04cc9559a3adb7c2708e292f5f307

src/installer/uwp/Windows/gen-buildsys-win.bat
src/installer/uwp/build.cmd

index 72df643..81d6efd 100644 (file)
@@ -16,7 +16,11 @@ echo %5
 
 setlocal
 set __sourceDir=%1
+
+set __VSString=14 2015
+if "%__VSVersion%" == "vs2017" (
 set __VSString=15 2017
+)
 
 :: Set the target architecture to a format cmake understands. ANYCPU defaults to x64
 set cm_BaseRid=win10-%2
index 4e9b956..4b2d001 100644 (file)
@@ -59,11 +59,25 @@ exit /b 1
 
 :VS2017
 :: Setup vars for VS2017
+set __VSVersion=vs2017
 set __PlatformToolset=v141
 if NOT "%__BuildArch%" == "arm64" (
     :: Set the environment for the native build
     call "%VS150COMNTOOLS%..\..\VC\Auxiliary\Build\vcvarsall.bat" %__VCBuildArch%
 )
+goto :SetupDirs
+
+:VS2015
+:: Setup vars for VS2015build
+set __VSVersion=vs2015
+set __PlatformToolset=v140
+if NOT "%__BuildArch%" == "arm64" (
+    :: Set the environment for the native build
+    call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" %__VCBuildArch%
+)
+
+:SetupDirs
+
 :: Setup to cmake the native components
 echo Commencing build of native UWP components
 echo.