private void SetDirectoryProperty(string name, string displayName, string description, string switchValue, string value) { base.ActiveToolSwitches.Remove(name); ToolSwitch toolSwitch = new ToolSwitch(ToolSwitchType.Directory); toolSwitch.DisplayName = displayName; toolSwitch.Description = description; toolSwitch.ArgumentRelationList = new ArrayList(); toolSwitch.SwitchValue = switchValue; toolSwitch.Name = name; toolSwitch.Value = VCToolTask.EnsureTrailingSlash(value); base.ActiveToolSwitches.Add(name, toolSwitch); base.AddActiveSwitchToolValue(toolSwitch); }
protected override string GenerateResponseFileCommands(VCToolTask.CommandLineFormat format) { return string.Empty; }
protected override string GenerateCommandLineCommands(VCToolTask.CommandLineFormat format #if TOOLS_V14 , VCToolTask.EscapeFormat escapeFormat #endif ) { string str = base.GenerateResponseFileCommands(format #if TOOLS_V14 , escapeFormat #endif ); if (!this.TrackFileAccess) str = str.Replace("\\\"", "\"").Replace("\\\\\"", "\\\""); str += " " + CommandLine; string src = ""; foreach (var item in Sources) src += " " + item.ToString(); if (!String.IsNullOrEmpty(src)) { if (format == VCToolTask.CommandLineFormat.ForTracking) str += " " + src.ToUpper(); else str += " " + src; } return str; }