Skip to content

Commit

Permalink
Add test .nuspec for Windows and respective docs (#585)
Browse files Browse the repository at this point in the history
* add test .nuspec for Windows and respective docs

* minor doc change

* keep only x64 file entry and use build.bat output dll

---------

Co-authored-by: Sayan Shaw <[email protected]>
Co-authored-by: Wenbing Li <[email protected]>
  • Loading branch information
3 people authored Oct 31, 2023
1 parent a0c2625 commit 5fd6bcf
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
33 changes: 33 additions & 0 deletions nuget/WinOnlyNuget.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version='1.0' encoding='utf-8'?>
<package>
<metadata>
<id>Microsoft.ML.OnnxRuntime.Extensions</id>
<version>0.9.0</version>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
<description>TEST ONNX Runtime Extensions NuGet Package</description>
<releaseNotes>
This is a test NuGet package - NOT for official release.
</releaseNotes>
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
<tags>ONNX ONNXRuntime AI Machine Learning</tags>
<icon>ORT_icon_for_light_bg.png</icon>
<license type="file">LICENSE.txt</license>
<readme>README.md</readme>
<projectUrl>https://github.com/Microsoft/onnxruntime-extensions</projectUrl>
<repository type="git" url="https://github.com/Microsoft/onnxruntime-extensions.git"/>
</metadata>
<files>
<file src="LICENSE.txt" target="LICENSE.txt" />
<file src="README.md" target="README.md" />
<file src="ORT_icon_for_light_bg.png" target="ORT_icon_for_light_bg.png" />
<file src="..\ThirdPartyNotices.txt" target="ThirdPartyNotices.txt" />

<!-- Src paths for local Windows build via netstandard -->
<file src="..\out\Windows\bin\RelWithDebInfo\ortextensions.dll" target="runtimes\win-x64\native" />
<file src="targets\netstandard\Microsoft.ML.OnnxRuntime.Extensions.props" target="build\netstandard1.1" />
<file src="targets\netstandard\Microsoft.ML.OnnxRuntime.Extensions.props" target="build\netstandard2.0" />
<file src="targets\netstandard\Microsoft.ML.OnnxRuntime.Extensions.targets" target="build\netstandard1.1" />
<file src="targets\netstandard\Microsoft.ML.OnnxRuntime.Extensions.targets" target="build\netstandard2.0" />
</files>
</package>

0 comments on commit 5fd6bcf

Please sign in to comment.