Issue
- What did you do?: I tried to build ML.NET from the developer's guide using Visual Studio 2019
- What happened?: The build failed
Error: Visual Studio 2015 or 2017 required.
In src/Native/build.cmd at line 64:
:VS2019
:: Setup vars for VS2019
set __PlatformToolset=v142
set __VSVersion=15 2017
if NOT "%__BuildArch%" == "arm64" (
:: Set the environment for the native build
call "%VS160COMNTOOLS%..\..\VC\Auxiliary\Build\vcvarsall.bat" %__VCBuildArch%
)
Needs to be set __VSVersion=16 2019
Also cmake needs to be of version 3.14 or higher as it contains the generator for Visual Studion 2019
Issue
Error: Visual Studio 2015 or 2017 required.In src/Native/build.cmd at line 64:
:VS2019:: Setup vars for VS2019set __PlatformToolset=v142set __VSVersion=15 2017if NOT "%__BuildArch%" == "arm64" (:: Set the environment for the native buildcall "%VS160COMNTOOLS%..\..\VC\Auxiliary\Build\vcvarsall.bat" %__VCBuildArch%)Needs to be
set __VSVersion=16 2019Also cmake needs to be of version 3.14 or higher as it contains the generator for Visual Studion 2019