File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -47,18 +47,30 @@ set "VSCMD_START_DIR=%__currentScriptDir%"
47
47
call " %_VSCOMNTOOLS% \VsDevCmd.bat"
48
48
49
49
:RunVCVars
50
- if " %VisualStudioVersion% " == " 15.0" (
50
+ if " %VisualStudioVersion% " == " 16.0" (
51
+ goto :VS2019
52
+ ) else if " %VisualStudioVersion% " == " 15.0" (
51
53
goto :VS2017
52
54
) else if " %VisualStudioVersion% " == " 14.0" (
53
55
goto :VS2015
54
56
)
55
57
56
58
:MissingVersion
57
- :: Can't find VS 2015 or 2017
58
- echo Error: Visual Studio 2015 or 2017 required
59
+ :: Can't find VS 2015, 2017 or 2019
60
+ echo Error: Visual Studio 2015, 2017 or 2019 required
59
61
echo Please see https://github.com/dotnet/machinelearning/tree/master/Documentation for build instructions.
60
62
exit /b 1
61
63
64
+ :VS2019
65
+ :: Setup vars for VS2019
66
+ set __PlatformToolset = v142
67
+ set __VSVersion = 15 2017
68
+ if NOT " %__BuildArch% " == " arm64" (
69
+ :: Set the environment for the native build
70
+ call " %VS160COMNTOOLS% ..\..\VC\Auxiliary\Build\vcvarsall.bat" %__VCBuildArch%
71
+ )
72
+ goto :SetupDirs
73
+
62
74
:VS2017
63
75
:: Setup vars for VS2017
64
76
set __PlatformToolset = v141
You can’t perform that action at this time.
0 commit comments