Only set _native folder for Microsoft.AI.MachineLearning package (#6939)

* only set _native folder for Microsoft.AI.MachineLearning package

Co-authored-by: Sheil Kumar <sheilk@microsoft.com>
This commit is contained in:
Sheil Kumar 2021-03-08 15:27:11 -08:00 committed by GitHub
parent bc27652188
commit 67c67408c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -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('<file src=' + '"' + os.path.join(args.sources_path,

View file

@ -119,7 +119,7 @@ def main():
# Check if the relevant dlls are present in the Nuget/Zip
print('Checking if the Nuget contains relevant dlls')
is_windows_ai_package = os.path.basename(full_nuget_path).startswith('Microsoft')
is_windows_ai_package = os.path.basename(full_nuget_path).startswith('Microsoft.AI.MachineLearning')
check_if_dlls_are_present(is_windows_ai_package, args.platforms_supported, zip_file)
# Check if the Nuget has been signed