Skip to content

Commit

Permalink
Allow build pure cpu devlopment nupkg
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhan committed Apr 17, 2023
1 parent ccca584 commit 7cf9261
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion csharp/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ For example, to build a CUDA GPU package, just run:
/p:TargetFrameworks=netstandard2.0 \
/p:IsLinuxBuild=true
```
**Note**: build pure cpu development package is not supported at the moment.
**Note**: to build a pure CPU development package, you need to add `/p:OrtPackageId="Microsoft.ML.OnnxRuntime"`
to `--msbuild_extra_options`. Otherwise, it will try to create Xamarin mobile targets which may not be properly configured on your devbox.

A `.nupkg` file will be produced at you build root, say, `build/Release`.

Expand Down
2 changes: 2 additions & 0 deletions tools/ci_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2035,6 +2035,8 @@ def build_nuget_package(
elif use_snpe:
execution_provider = '/p:ExecutionProvider="snpe"'
package_name = '/p:OrtPackageId="Microsoft.ML.OnnxRuntime.Snpe"'
elif any(map(lambda x: "OrtPackageId=" in x, msbuild_extra_options)):
pass
else:
# use the solution file that includes Xamarin mobile targets
sln = "OnnxRuntime.CSharp.sln"
Expand Down

0 comments on commit 7cf9261

Please sign in to comment.