From c3101a75595699df1e0a42f4caf67d6ce28b7305 Mon Sep 17 00:00:00 2001 From: Geert van Horrik Date: Fri, 14 Nov 2025 11:28:09 +0100 Subject: [PATCH] GitHubSync update --- deployment/cake/generic-variables.cake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deployment/cake/generic-variables.cake b/deployment/cake/generic-variables.cake index 82648f3..2765f10 100644 --- a/deployment/cake/generic-variables.cake +++ b/deployment/cake/generic-variables.cake @@ -1,6 +1,7 @@ #l "buildserver.cake" #tool "nuget:?package=GitVersion.CommandLine&version=5.12.0" +#tool "nuget:?package=NuGet.CommandLine&version=7.0.0" //------------------------------------------------------------- @@ -252,6 +253,8 @@ public class NuGetContext : BuildContextBase protected override void LogStateInfoForContext() { + CakeContext.Information($"NuGet executable path '{Executable}'"); + CakeContext.Information($"NuGet executable version '{FileVersionInfo.GetVersionInfo(Executable).FileVersion}'"); CakeContext.Information($"Restore using NuGet: '{RestoreUsingNuGet}'"); CakeContext.Information($"Restore using dotnet restore: '{RestoreUsingDotNetRestore}'"); } @@ -511,7 +514,8 @@ private GeneralContext InitializeGeneralContext(BuildContext buildContext, IBuil data.NuGet = new NuGetContext(data) { PackageSources = buildContext.BuildServer.GetVariable("NuGetPackageSources", showValue: true), - Executable = "./tools/nuget.exe", + // Executable = "./tools/nuget.exe", + Executable = buildContext.CakeContext.Tools.Resolve("nuget.exe").FullPath, LocalPackagesDirectory = "c:\\source\\_packages", RestoreUsingNuGet = buildContext.BuildServer.GetVariableAsBool("NuGet_RestoreUsingNuGet", false, showValue: true), RestoreUsingDotNetRestore = buildContext.BuildServer.GetVariableAsBool("NuGet_RestoreUsingDotNetRestore", true, showValue: true),