onnxruntime/csharp/src/Microsoft.ML.OnnxRuntime
Dmitri Smirnov 896a963492
Adust GetVersionString() GetBuildInfoString() signatures and move them to OrtApi (#15921)
### Description

This PR partially reverts changes introduced in
https://github.com/microsoft/onnxruntime/pull/15643

We make two API return std::string always in UTF-8.

We also move the entry points from OrtApiBase to OrtApi to make them
versioned.

### Motivation and Context

`GetVersionString` always returns x.y.z numbers that are not subject to
internationalization.
`GetBuildInfoString` can hold international chars, but UTF-8 should be
fine to contain those.
We prefix them with u8"" in case the compiler default charset is not
UTF-8.
Furthermore, creating platform dependent APIs is discouraged.
`ORTCHAR_T` is platform dependent and was created for paths only.
On non-unix platforms would still produce `std::string` that can only
contain UTF-8

The API was introduced after the latest release, and can still be
adjusted.
2023-05-13 13:45:07 -07:00
..
targets Add yml file for Snpe EP build (#13494) 2022-10-28 19:47:50 -07:00
Tensors Various fixes to the CSharp setup (#15782) 2023-05-05 14:27:30 +10:00
Training Update VERSION_NUMBER (#15773) 2023-05-03 15:07:34 -07:00
AssemblyInfo.shared.cs
DisposableNamedOnnxValue.shared.cs Implement Optional Metadata support and C# test support (#15314) 2023-04-11 09:41:59 -07:00
Exceptions.shared.cs
FixedBufferOnnxValue.shared.cs
InferenceSession.shared.cs [C# ] Improve string marshalling and reduce GC pressure (#15545) 2023-04-20 15:12:51 -07:00
ManagedProjections.shared.cs Implement Optional Metadata support and C# test support (#15314) 2023-04-11 09:41:59 -07:00
Microsoft.ML.OnnxRuntime.csproj Implement openAI endpoint invoker for nuget (#15797) 2023-05-11 22:04:02 -07:00
Microsoft.ML.OnnxRuntime.sln
NamedOnnxValue.shared.cs Implement Optional Metadata support and C# test support (#15314) 2023-04-11 09:41:59 -07:00
NativeApiStatus.shared.cs
NativeMethods.shared.cs Adust GetVersionString() GetBuildInfoString() signatures and move them to OrtApi (#15921) 2023-05-13 13:45:07 -07:00
NativeOnnxValueHelper.shared.cs [C# ] Improve string marshalling and reduce GC pressure (#15545) 2023-04-20 15:12:51 -07:00
OrtAllocator.shared.cs [C# ] Improve string marshalling and reduce GC pressure (#15545) 2023-04-20 15:12:51 -07:00
OrtEnv.shared.cs Adust GetVersionString() GetBuildInfoString() signatures and move them to OrtApi (#15921) 2023-05-13 13:45:07 -07:00
OrtIoBinding.shared.cs [C# ] Improve string marshalling and reduce GC pressure (#15545) 2023-04-20 15:12:51 -07:00
OrtLoggingLevel.shared.cs [C#] Allow passing various options when creating singleton Environment object. (#14723) 2023-04-18 21:49:55 -07:00
OrtThreadingOptions.shared.cs [C#] Allow passing various options when creating singleton Environment object. (#14723) 2023-04-18 21:49:55 -07:00
OrtValue.shared.cs [C# ] Improve string marshalling and reduce GC pressure (#15545) 2023-04-20 15:12:51 -07:00
OrtValueTensor.shared.cs [C# ] Improve string marshalling and reduce GC pressure (#15545) 2023-04-20 15:12:51 -07:00
PrepackedWeightsContainer.shared.cs
ProviderOptions.shared.cs [C# ] Improve string marshalling and reduce GC pressure (#15545) 2023-04-20 15:12:51 -07:00
RunOptions.shared.cs [C# ] Improve string marshalling and reduce GC pressure (#15545) 2023-04-20 15:12:51 -07:00
SessionOptions.shared.cs Implement openAI endpoint invoker for nuget (#15797) 2023-05-11 22:04:02 -07:00
SessionOptionsContainer.shared.cs