From bd60add8cea79065dba9b07460c286b8b22a6ed1 Mon Sep 17 00:00:00 2001 From: Scott McKay Date: Thu, 19 Sep 2024 19:06:47 +1000 Subject: [PATCH] Update nuget.exe used in WindowsAI nuget packaging so `readme` property is supported. (#22141) ### Description Use the latest nuget.exe for the `readme` property to be supported. ### Motivation and Context #22137 --- cmake/nuget_helpers.cmake | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/cmake/nuget_helpers.cmake b/cmake/nuget_helpers.cmake index e3296e1111e95..22143ac422e9f 100644 --- a/cmake/nuget_helpers.cmake +++ b/cmake/nuget_helpers.cmake @@ -19,7 +19,7 @@ function(package_version id out packages_config) set(${out} ${version} PARENT_SCOPE) endfunction() -# Downloads the nuget packages based on packages.config +# Downloads the nuget packages based on packages.config function( add_fetch_nuget_target nuget_target # Target to be written to @@ -33,13 +33,13 @@ function( # Retrieve the latest version of nuget include(ExternalProject) ExternalProject_Add(nuget_exe - PREFIX nuget_exe - URL "https://dist.nuget.org/win-x86-commandline/v5.3.0/nuget.exe" - DOWNLOAD_NO_EXTRACT 1 - CONFIGURE_COMMAND "" - BUILD_COMMAND "" - UPDATE_COMMAND "" - INSTALL_COMMAND "") + PREFIX nuget_exe + URL "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" + DOWNLOAD_NO_EXTRACT 1 + CONFIGURE_COMMAND "" + BUILD_COMMAND "" + UPDATE_COMMAND "" + INSTALL_COMMAND "") set(NUGET_CONFIG ${PROJECT_SOURCE_DIR}/../NuGet.config) set(PACKAGES_CONFIG ${PROJECT_SOURCE_DIR}/../packages.config) @@ -54,4 +54,4 @@ function( add_custom_target(${nuget_target} DEPENDS ${target_dependency}) add_dependencies(${nuget_target} nuget_exe) -endfunction() \ No newline at end of file +endfunction()