From c20cbf0c97c9596c789fe861eb979d27511b4e2a Mon Sep 17 00:00:00 2001 From: Scott McKay Date: Wed, 6 Jul 2022 03:29:32 +1000 Subject: [PATCH] Add undocumented attribute to disable generation of Java bindings from the Android AAR. (#12075) The generated bindings causes C# build errors that require workaround code. Disabling generation should avoid the need for any workarounds. As the user has the C# ORT package with the C# to C bindings there's no need for binding generation that calls the ORT Java API (which is C# -> Java ->C). --- .../Microsoft.ML.OnnxRuntime/targets/net6.0-android/targets.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp/src/Microsoft.ML.OnnxRuntime/targets/net6.0-android/targets.xml b/csharp/src/Microsoft.ML.OnnxRuntime/targets/net6.0-android/targets.xml index 54576a67d2..ba946c59d8 100644 --- a/csharp/src/Microsoft.ML.OnnxRuntime/targets/net6.0-android/targets.xml +++ b/csharp/src/Microsoft.ML.OnnxRuntime/targets/net6.0-android/targets.xml @@ -1,7 +1,7 @@ - + %(Filename)%(Extension)