From 951484ba533a67e13e912a27b5950b01b9e0466e Mon Sep 17 00:00:00 2001 From: Sheil Kumar Date: Thu, 16 Apr 2020 22:21:57 -0700 Subject: [PATCH] Dualapipartitionattibute.h header is missing in nuget package (#3350) * add dualapipartition * wrong variable for repo root Co-authored-by: Sheil Kumar --- .../Microsoft.ML.OnnxRuntime.csproj | 12 +++++++++++- tools/nuget/generate_nuspec_for_native_nuget.py | 3 +++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj b/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj index 669497220c..7033795d3e 100644 --- a/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj +++ b/csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj @@ -10,7 +10,8 @@ ..\..\OnnxRuntime.snk - ..\.. + ..\..\.. + $(OnnxRuntimeRoot)\csharp $(OnnxRuntimeCsharpRoot)\..\build\Windows $(OnnxRuntimeBuildDirectory)\$(Configuration)\$(Configuration) x64 @@ -146,6 +147,15 @@ CopyToOutputDirectory="Never" Visible="false" /> + ') + if (args.package_name == 'Microsoft.ML.OnnxRuntime.DirectML' or args.package_name == 'Microsoft.ML.OnnxRuntime') and os.path.exists(os.path.join(args.ort_build_path, args.build_config, 'dualapipartitionattribute.h')): + files_list.append('') + # Process dnll.dll if os.path.exists(os.path.join(args.native_build_path, 'dnnl.dll')): files_list.append('')