2 writes to SwitchValue
Microsoft.Build.Tasks.Core (2)
XamlTaskFactory\CommandLineGenerator.cs (2)
75switchToAdd.SwitchValue = property.Prefix + property.SwitchName; 139switchToAdd.SwitchValue = enumValue.Prefix + enumValue.SwitchName;
17 references to SwitchValue
Microsoft.Build.Tasks.Core (17)
XamlTaskFactory\CommandLineGenerator.cs (13)
349clb.AppendSwitchIfNotNull(commandLineToolSwitch.SwitchValue, itemName.ItemSpec); 354clb.AppendSwitchIfNotNull(commandLineToolSwitch.SwitchValue, commandLineToolSwitch.TaskItemArray, commandLineToolSwitch.Separator); 398clb.AppendSwitchIfNotNull(commandLineToolSwitch.SwitchValue, fileName); 406clb.AppendSwitchIfNotNull(commandLineToolSwitch.SwitchValue, arrTrimStringList, commandLineToolSwitch.Separator); 417int valuePos = commandLineToolSwitch.SwitchValue.IndexOf(Value, StringComparison.OrdinalIgnoreCase); 420string prefixToAppend = commandLineToolSwitch.SwitchValue.Substring(valuePos + Value.Length); 430string valueToAppend = $"{commandLineToolSwitch.SwitchValue.Substring(0, valuePos)}{switchValue}{(needsEscaping ? "\\" : "")}{prefixToAppend}"; 456clb.AppendSwitch(commandLineToolSwitch.SwitchValue + commandLineToolSwitch.Separator + numberAsString); 460clb.AppendSwitch(commandLineToolSwitch.SwitchValue + numberAsString); 480strSwitch += commandLineToolSwitch.SwitchValue + commandLineToolSwitch.Separator; 505str = commandLineToolSwitch.SwitchValue; 557if (!String.IsNullOrEmpty(commandLineToolSwitch.SwitchValue)) 562val.Insert(0, commandLineToolSwitch.SwitchValue);
XamlTaskFactory\XamlDataDrivenToolTask.cs (4)
124if (switchToAdd.SwitchValue != String.Empty) 126ActiveToolSwitchesValues.Add(switchToAdd.SwitchValue, switchToAdd); 233if (String.Equals(overridePair.Key, (overriddenSwitch.Value.Type == CommandLineToolSwitchType.Boolean && !overriddenSwitch.Value.BooleanValue) ? overriddenSwitch.Value.ReverseSwitchValue.TrimStart('/') : overriddenSwitch.Value.SwitchValue.TrimStart('/'), StringComparison.OrdinalIgnoreCase)) 239if (String.Equals(overrideTarget.Value.SwitchValue.TrimStart('/'), overridePair.Value, StringComparison.OrdinalIgnoreCase))