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))