Add test .nuspec for Windows and respective docs (#585)

* 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 <sayanshaw@microsoft.com>
Co-authored-by: Wenbing Li <10278425+wenbingl@users.noreply.github.com>
This commit is contained in:
Sayan Shaw 2023-10-30 23:34:51 -07:00 коммит произвёл GitHub
Родитель a0c2625511
Коммит 5fd6bcf4d6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 38 добавлений и 0 удалений

Просмотреть файл

@ -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.

33
nuget/WinOnlyNuget.nuspec Normal file
Просмотреть файл

@ -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>