private string GetArguments(IIntegrationResult result) { StringBuilder sb = new StringBuilder(); if (SolutionFile.StartsWith("\"")) { sb.Append(SolutionFile); } else { sb.AppendFormat(CultureInfo.CurrentCulture, "\"{0}\"", SolutionFile); } sb.AppendFormat(CultureInfo.CurrentCulture, " /{0}", BuildType); if (Configuration.StartsWith("\"")) { sb.AppendFormat(CultureInfo.CurrentCulture, " {0}", Configuration); } else { sb.AppendFormat(CultureInfo.CurrentCulture, " \"{0}\"", Configuration); } if (!string.IsNullOrEmpty(Project)) { if (Project.StartsWith("\"")) { sb.AppendFormat(CultureInfo.CurrentCulture, " /project {0}", Project); } else { sb.AppendFormat(CultureInfo.CurrentCulture, " /project \"{0}\"", Project); } } // always create an out file, will be merged into build log later sb.AppendFormat(CultureInfo.CurrentCulture, " /out \"{0}\"", DevEnvOutputFile(result)); return(sb.ToString()); }