From 67c67408c4328adcd5b6e14938516fa4e19c82a6 Mon Sep 17 00:00:00 2001 From: Sheil Kumar Date: Mon, 8 Mar 2021 15:27:11 -0800 Subject: [PATCH] Only set _native folder for Microsoft.AI.MachineLearning package (#6939) * only set _native folder for Microsoft.AI.MachineLearning package Co-authored-by: Sheil Kumar --- tools/nuget/generate_nuspec_for_native_nuget.py | 7 ++++++- tools/nuget/validate_nuget.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/nuget/generate_nuspec_for_native_nuget.py b/tools/nuget/generate_nuspec_for_native_nuget.py index ec3afa8f29..256c7a7d0e 100644 --- a/tools/nuget/generate_nuspec_for_native_nuget.py +++ b/tools/nuget/generate_nuspec_for_native_nuget.py @@ -216,9 +216,14 @@ def generate_files(list, args): copy_command = "cp" runtimes_target = '" target="runtimes\\linux-' + if is_windowsai_package: + runtimes_native_folder = '_native' + else: + runtimes_native_folder = 'native' + runtimes = '{}{}\\{}"'.format(runtimes_target, args.target_architecture, - 'lib\\uap10.0' if args.is_store_build else '_native') + 'lib\\uap10.0' if args.is_store_build else runtimes_native_folder) # Process headers files_list.append('