dotnet / dotnet/machinelearning

Build instructions: CMake < 4.0 and spectre-mitigation

Open
#7,467 0 comments 1 reaction 1 assignee Assigned to @Copilot View on GitHub
area-Infrastructure untriaged
Dominant language
C#
Stars
9.4k
Forks
2k
Avg merge
2d 20h
Merged PRs (30d)
11

Description

**System Information (please complete the following information):**
- OS & Version: Windows 11, VS2022
- ML.NET Version: main from github 17th May 2025

**Describe the bug**
To compile the project on Windows:
CMake 4.0.2 return error "path not found"
Spectre-mitigated libraries are needed in VS2022

**To Reproduce**
Steps to reproduce the behavior:
1. Clean machine
2. Install VS2022 and follow instructions on developer page
3. Install latest CMake
4. Observe errors trying to build Native libraries

**Additional context**
Minor update needed https://github.com/dotnet/machinelearning/blob/main/docs/building/windows-instructions.md on Individual Components needed and probably a notice on using CMake <4.0.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.