/// <summary> /// Gets the log file name for script execution. /// </summary> /// <param name="solution">Specifies a solution.</param> /// <returns>The log file name for the solution.</returns> private static string GetScriptLogName(Data.Solution solution) { var fileName = String.Format("{0}-script.txt", solution.SolutionName); // Replace spaces with underline. fileName = fileName.Replace(' ', '_'); fileName = Path.Combine(GetFolder(), fileName); return(fileName); }
/// <summary> /// Gets the log file name for solution execution. /// </summary> /// <param name="solution">Specifies a solution.</param> /// <returns>The log file name for the solution.</returns> private static string GetSolutionLogName(Data.Solution solution) { var fileName = String.Format("{0}-{1}-{2}-{3}.txt", solution.SolutionName, solution.Configuration, solution.Task, solution.Platform); // Replace spaces with underline. fileName = fileName.Replace(' ', '_'); fileName = Path.Combine(GetFolder(), fileName); return(fileName); }
/// <summary> /// Gets the log file name. /// </summary> /// <param name="solution">Specifies a solution.</param> /// <returns>The log file name for the solution.</returns> public static string GetLogName(Data.Solution solution) { return(solution.IsSolution ? GetSolutionLogName(solution) : GetScriptLogName(solution)); }
/// <summary> /// Initializes a new instance of the SolutionExecuter class. /// </summary> /// <param name="solution">Solution.</param> public SolutionExecuter(Data.Solution solution) { solution_ = solution; }