private string GetExecutable(BuildItem toolPath) { const string toolName = "xunit.console.clr4.exe"; if (toolPath != null) { return(toolPath); } toolPath = new BuildGlob().Include("**/" + toolName).FirstOrDefault(); if (toolPath == null) { throw new BuildCsException("Unable to find " + toolName); } return(toolPath); }
private string GetExecutable(BuildItem toolPath) { if (toolPath != null) { return(toolPath); } toolPath = new BuildGlob().Include("**/nuget.exe").FirstOrDefault(); if (toolPath != null) { return(toolPath); } toolPath = new BuildGlob().Include("**/NuGet.exe").FirstOrDefault(); if (toolPath == null) { throw new BuildCsException("Unabled to find nuget.exe"); } return(toolPath); }
public void RestorePackages() { var packageConfigs = new BuildGlob().Include("**/*.sln"); packageConfigs.Each(pc => RestorePackage(pc, null)); }