private static string GetDotnetPath() { var dotnetExeRelativePath = ".cli/dotnet.exe"; if (!RuntimeEnvironmentHelper.IsWindows) { dotnetExeRelativePath = ".cli/dotnet"; } return(CmdRunner.GetPath(dotnetExeRelativePath)); }