in powershell-agent/src/main/java/jetbrains/buildServer/powershell/agent/detect/cmd/DetectionPaths.java [91:104]
private void addGlobalToolsPath(@NotNull final List<String> result) {
File toolsPath;
if (SystemInfo.isWindows) {
toolsPath = new File(System.getenv("USERPROFILE") + "\\.dotnet\\tools");
} else {
toolsPath = new File(System.getenv("HOME") + "/.dotnet/tools");
}
if (toolsPath.isDirectory()) {
if (LOG.isDebugEnabled()) {
LOG.debug(".Net tools path " + toolsPath.getAbsolutePath() + " exists. Added to PowerShell search paths");
}
result.add(toolsPath.getAbsolutePath());
}
}