dotnet / dotnet/machinelearning
Error: "Microsoft.ML currently supports 'x64' and 'x86' processor" when target runtime is *linux-arm* or *linux-arm64*
- 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**

Contributor guide
Assessment
This issue has not been assessed yet.