onnxruntime/csharp/src/Microsoft.ML.OnnxRuntime
Scott McKay c352e9b1f9
Rework/cleanup the C# build infrastructure for nuget packages. (#18127)
### Description
Update the C# nuget build infrastructure to make building a test nuget
package more user friendly and to simplify
- Remove usage of dotnet and msbuild in CIs
- was temporary requirement until .net 6 MAUI was added to the released
Visual Studio
  - remove SelectedTargets property and its usage
- Add property for excluding mobile targets
  -  generally we exclude based on the nuget package name
- can now specify `/p:IncludeMobileTargets=false` on the command line to
force exclusion
- support building test package using build.py `--build_nuget` better
- limit inclusion of xamarin targets as building with them requires a
lot more infrastructure
- use msbuild directly if xamarin targets are included. use dotnet
otherwise.
- remove quoting of property values as it doesn't appear to be necessary
and breaks when msbuild is being used
- add infrastructure to be able to pack the nuget package on linux with
`dotnet pack`
    - `nuget pack` is not user friendly as-per comments in changes
    - requires stub csproj to provide the nuspec path 
- Remove netstandard1.0 targets from nuspec
  - we removed support from the actual bindings previously
- Remove usage of nuget-staging directory when creating nuget package on
linux
- the nuspec file element has a fully qualified path for a source file
so there is no obvious benefit to copying to a staging directory prior
to packing

### Motivation and Context
Address issues with 1P users trying to create test nuget packages
locally.
Long overdue cleanup of CI complexity.
2023-11-03 09:05:17 -07:00
..
targets
Tensors [C#] Rename unreleased API, add utilities (#16806) 2023-08-02 10:06:42 -07:00
Training [On-Device Training] Expose Parameters through the Training API (#17364) 2023-09-25 20:03:24 -07:00
AssemblyInfo.shared.cs
DisposableNamedOnnxValue.shared.cs [C#] Add ML Sequences and Maps Create and Process APIs (#16648) 2023-07-21 12:58:29 +08:00
Exceptions.shared.cs [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -07:00
FixedBufferOnnxValue.shared.cs [C#] Add ML Sequences and Maps Create and Process APIs (#16648) 2023-07-21 12:58:29 +08:00
InferenceSession.shared.cs Fix nuget pipeline (#17110) 2023-08-14 09:04:37 -04:00
ManagedProjections.shared.cs [C#] Add ML Sequences and Maps Create and Process APIs (#16648) 2023-07-21 12:58:29 +08:00
Microsoft.ML.OnnxRuntime.csproj Rework/cleanup the C# build infrastructure for nuget packages. (#18127) 2023-11-03 09:05:17 -07:00
Microsoft.ML.OnnxRuntime.sln
NamedOnnxValue.shared.cs [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -07:00
NativeApiStatus.shared.cs [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -07:00
NativeMethods.shared.cs Fix missing attribute on C# DOrtGetResizedStringTensorElementBuffer delegate (#17901) 2023-10-17 17:48:36 +10:00
NativeOnnxValueHelper.shared.cs [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -07:00
OrtAllocator.shared.cs [C#] Rename unreleased API, add utilities (#16806) 2023-08-02 10:06:42 -07:00
OrtEnv.shared.cs Adust GetVersionString() GetBuildInfoString() signatures and move them to OrtApi (#15921) 2023-05-13 13:45:07 -07:00
OrtFloat16.shared.cs [C#, CPP] Introduce Float16/BFloat16 support and tests for C#, C++ (#16506) 2023-07-14 10:46:52 -07:00
OrtIoBinding.shared.cs [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -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
OrtTypeInfo.shared.cs [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -07:00
OrtValue.shared.cs [C#]Fix API Comment (#17236) 2023-08-21 15:46:31 -07:00
OrtValueTensor.shared.cs [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -07:00
PrepackedWeightsContainer.shared.cs
ProviderOptions.shared.cs [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -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 [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -07:00
SessionOptionsContainer.shared.cs
ShapeUtils.shared.cs [C#] Rename unreleased API, add utilities (#16806) 2023-08-02 10:06:42 -07:00