From b12e82a8fec220f41c850df47cf99f1f448f2838 Mon Sep 17 00:00:00 2001 From: Ilia Lopatkin Date: Mon, 29 Sep 2025 22:05:19 +0500 Subject: [PATCH] Support for Windows not on the C drive --- source/Nuke.Tooling/ToolPathResolver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Nuke.Tooling/ToolPathResolver.cs b/source/Nuke.Tooling/ToolPathResolver.cs index d80550e2b..12d217201 100644 --- a/source/Nuke.Tooling/ToolPathResolver.cs +++ b/source/Nuke.Tooling/ToolPathResolver.cs @@ -31,7 +31,7 @@ public static string GetPathExecutable(string pathExecutable) return Path.GetFullPath(pathExecutable); var locateExecutable = EnvironmentInfo.IsWin - ? @"C:\Windows\System32\where.exe" + ? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "where.exe") : "/usr/bin/which"; if (!File.Exists(locateExecutable))