Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion deployment/cake/generic-variables.cake
Original file line number Diff line number Diff line change
@@ -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"

//-------------------------------------------------------------

Expand Down Expand Up @@ -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}'");
}
Expand Down Expand Up @@ -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),
Expand Down
Loading