From 7305b1e5d9d0215318038e517e9b4fe730f1348b Mon Sep 17 00:00:00 2001 From: Pranav K Date: Thu, 19 May 2016 17:30:53 -0700 Subject: [PATCH] Always declare the nuget-verify target --- build/shade/_k-standard-goals.shade | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/build/shade/_k-standard-goals.shade b/build/shade/_k-standard-goals.shade index 4613b86..0774603 100644 --- a/build/shade/_k-standard-goals.shade +++ b/build/shade/_k-standard-goals.shade @@ -189,12 +189,15 @@ default PACKAGELIST_JSON_FILENAME = 'NuGetPackageVerifier.json' copy sourceDir='${Path.GetDirectoryName(project)}' include='bin/**/' outputDir='${Path.Combine(BUILD_DIR, Path.GetFileNameWithoutExtension(project))}' overwrite='${true}' each='var project in nativeProjects' -#nuget-verify target='package' if='File.Exists(PACKAGELIST_JSON_FILENAME) && ShouldVerifyNupkgs' description='Verify if all the packages are generated properly' +#nuget-verify target='package' description='Verify if all the packages are generated properly' @{ - var verifierDirectory = Directory.EnumerateDirectories(Path.Combine(KoreBuildFolderPath, "NuGetPackageVerifier")).First(); - Exec( - Path.Combine(verifierDirectory, "NuGetPackageVerifier.exe"), - string.Format("\"{0} \" \"{1} \"", BUILD_DIR, Path.Combine(BASE_DIR, PACKAGELIST_JSON_FILENAME))); + if (ShouldVerifyNupkgs && File.Exists(PACKAGELIST_JSON_FILENAME)) + { + var verifierDirectory = Directory.EnumerateDirectories(Path.Combine(KoreBuildFolderPath, "NuGetPackageVerifier")).First(); + Exec( + Path.Combine(verifierDirectory, "NuGetPackageVerifier.exe"), + string.Format("\"{0} \" \"{1} \"", BUILD_DIR, Path.Combine(BASE_DIR, PACKAGELIST_JSON_FILENAME))); + } } #nuget-install target='install' description='Install NuGet packages to local repo'