Skip to content

Unable to build ML.NET from source with Visual Studio 2019 #3739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
PranovD opened this issue May 16, 2019 · 0 comments · Fixed by #3742
Closed

Unable to build ML.NET from source with Visual Studio 2019 #3739

PranovD opened this issue May 16, 2019 · 0 comments · Fixed by #3742
Assignees
Labels
Build Build related issue

Comments

@PranovD
Copy link
Contributor

PranovD commented May 16, 2019

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

@codemzs codemzs added the Build Build related issue label May 16, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Mar 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Build Build related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants