diff --git a/docs/development.md b/docs/development.md index a3b4c776..1bfccaef 100644 --- a/docs/development.md +++ b/docs/development.md @@ -25,6 +25,11 @@ Use `./tools/android/build_aar.py` to build an Android AAR package. ## iOS package Use `./tools/ios/build_xcframework.py` to build an iOS xcframework package. +## NuGet package +In order to build a local NuGet package for testing, run `nuget.exe pack ./nuget/WinOnlyNuget.nuspec` to build a NuGet package for Windows. + +Note: you might need to update the src paths in the ./nuget/WinOnlyNuget.nuspec file if the appropriate ortextensions.dll files do not exist/are not in the given location. + ## Web-Assembly ONNXRuntime-Extensions will be built as a static library and linked with ONNXRuntime due to the lack of a good dynamic linking mechanism in WASM. Here are two additional arguments [–-use_extensions and --extensions_overridden_path](https://github.com/microsoft/onnxruntime/blob/860ba8820b72d13a61f0d08b915cd433b738ffdc/tools/ci_build/build.py#L416) on building onnxruntime to include ONNXRuntime-Extensions footprint in the ONNXRuntime package. diff --git a/nuget/WinOnlyNuget.nuspec b/nuget/WinOnlyNuget.nuspec new file mode 100644 index 00000000..0061edb2 --- /dev/null +++ b/nuget/WinOnlyNuget.nuspec @@ -0,0 +1,33 @@ + + + + Microsoft.ML.OnnxRuntime.Extensions + 0.9.0 + Microsoft + Microsoft + TEST ONNX Runtime Extensions NuGet Package + + This is a test NuGet package - NOT for official release. + + © Microsoft Corporation. All rights reserved. + ONNX ONNXRuntime AI Machine Learning + ORT_icon_for_light_bg.png + LICENSE.txt + README.md + https://github.com/Microsoft/onnxruntime-extensions + + + + + + + + + + + + + + + +