Add nuget README and remove ort lib references from props (#409)

* Add nuget README and remove ort lib references from props

* replace commit id in nuspec dynamically

* remove $ sign for commit id token

---------

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-04-27 09:42:03 -07:00 коммит произвёл GitHub
Родитель 0f45fef2d9
Коммит 79a348d2e8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 14 добавлений и 13 удалений

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

@ -66,6 +66,14 @@ stages:
DisplayName: 'Sign DLL'
DoEsrp: 'true'
- task: PowerShell@2
displayName: Replace commit id token in nuspec
inputs:
targetType: 'inline'
script: |
(Get-Content NativeNuget.nuspec) -replace 'COMMIT_ID', '$(Build.SourceVersion)' | Set-Content NativeNuget.nuspec
workingDirectory: '$(Build.SourcesDirectory)/nuget'
- task: NuGetToolInstaller@0
displayName: Use Nuget 6.2.1
inputs:

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

@ -25,12 +25,14 @@
<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" commit="94142d8391c9791ec71c38336436319a2d4ac7a0"/>
<repository type="git" url="https://github.com/Microsoft/onnxruntime-extensions.git" commit="COMMIT_ID"/>
</metadata>
<!-- assemble files in the /nuget directory and run nuget pack from -->
<files>
<file src="LICENSE.txt" target="LICENSE.txt" />
<file src="README.md" target="README.md" />
<!-- Windows, Linux, macOS 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\native" />

3
nuget/README.md Normal file
Просмотреть файл

@ -0,0 +1,3 @@
# OnnxRuntime.Extensions NuGet Package
[ONNX Runtime Extensions](https://github.com/microsoft/onnxruntime-extensions) is a library of custom ONNX operators used for pre and post processing ONNX models.

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

@ -1,17 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemDefinitionGroup Condition="'$(PlatformTarget)' == 'x64' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' != 'true')">
<Link>
<AdditionalDependencies>$(MSBuildThisFileDirectory)../../runtimes/win-x64/native/onnxruntime.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(PlatformTarget)' == 'x86' OR ('$(PlatformTarget)' == 'AnyCPU' AND '$(Prefer32Bit)' == 'true')">
<Link>
<AdditionalDependencies>$(MSBuildThisFileDirectory)../../runtimes/win-x86/native/onnxruntime.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<PropertyGroup>
<EnginePlatform Condition="'$(Platform)' == 'Win32'">x86</EnginePlatform>