Closed as not planned
Description
openedon Mar 5, 2022
Description
I am unable to use Microsoft.ML.OnnxRuntime.Managed
with MAUI, it works on a regular net6.0
library, and latest Xamarin Forms.
Error: Reference to type 'ReadOnlySpan<>' claims it is defined in 'mscorlib', but it could not be found
Steps to Reproduce
- Create a new MAUI project, Android is what I tested on
- Add Nuget reference to
Microsoft.ML.OnnxRuntime.Managed
andMicrosoft.ML.OnnxRuntime
- Add workaround for a different ONNX bug: net6.0-android generated sources compile error(don't support covariant for return value ) #3867 (comment)
- Add this code somewhere:
new DenseTensor<float>(4);
Version with bug
Preview 13 (current)
Last version that worked well
Unknown/Other
Affected platforms
I was not able test on other platforms
Affected platform versions
Android
Did you find any workaround?
No
Relevant log output
No response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment