dotnet / dotnet/machinelearning

Error: "Microsoft.ML currently supports 'x64' and 'x86' processor" when target runtime is *linux-arm* or *linux-arm64*

Open
#6,588 9 comments 0 reactions 0 assignees View on GitHub
area-Native Priority:1
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: Linux 5.19.0-32-generic 22.04.1-Ubuntu
- ML.NET Version: 2.0.1
- .NET Version: 6.0

**Describe the bug**
Unable to build a project if target runtime is set to either `linux-arm` or `linux-arm64`.
Error:
```
~/.nuget/packages/microsoft.ml/2.0.1/build/netstandard2.0/Microsoft.ML.targets(16,5): error :
Microsoft.ML currently supports 'x64' and 'x86' processor architectures.
Please ensure your application is targeting 'x64' or 'x86'.
```
https://github.com/dotnet/machinelearning/blob/db197154dcd924ae9a7e31074a835b86e34e33bb/src/Microsoft.ML/build/netstandard2.0/Microsoft.ML.targets#L7-L20

**To Reproduce**
Create a console project, add a reference to `Microsoft.ML 2.0.1` package, try to build the project with target runtime set to either `linux-arm` or `linux-arm64`.

**Expected behavior**
Should build without errors.

**Screenshot**
![Schermata del 2023-03-02 18-08-15](https://user-images.githubusercontent.com/6654265/222501243-78bd5571-f3dd-4836-8ab2-1e919f645dee.png)

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.