Fix nuget pipeline (#17110)

Fix nuget pipeline by correcting the calling convention on c# delegate.

---------

Co-authored-by: Randy Shuai <rashuai@microsoft.com>
This commit is contained in:
RandySheriffH 2023-08-14 06:04:37 -07:00 committed by GitHub
parent e55e1b7da9
commit f71b6944bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1060,6 +1060,7 @@ namespace Microsoft.ML.OnnxRuntime
}
}
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
private delegate void OrtCallbackDelegate(IntPtr userData, IntPtr[] outputs, uint numOutputs, IntPtr status);
private static OrtCallbackDelegate ortCallback = new OrtCallbackDelegate(OrtCallback);