2 writes to SwitchValue
Microsoft.Build.Tasks.Core (2)
XamlTaskFactory\CommandLineGenerator.cs (2)
80switchToAdd.SwitchValue = property.Prefix + property.SwitchName; 144switchToAdd.SwitchValue = enumValue.Prefix + enumValue.SwitchName;
17 references to SwitchValue
Microsoft.Build.Tasks.Core (17)
XamlTaskFactory\CommandLineGenerator.cs (13)
354clb.AppendSwitchIfNotNull(commandLineToolSwitch.SwitchValue, itemName.ItemSpec); 359clb.AppendSwitchIfNotNull(commandLineToolSwitch.SwitchValue, commandLineToolSwitch.TaskItemArray, commandLineToolSwitch.Separator); 403clb.AppendSwitchIfNotNull(commandLineToolSwitch.SwitchValue, fileName); 411clb.AppendSwitchIfNotNull(commandLineToolSwitch.SwitchValue, arrTrimStringList, commandLineToolSwitch.Separator); 422int valuePos = commandLineToolSwitch.SwitchValue.IndexOf(Value, StringComparison.OrdinalIgnoreCase); 425string prefixToAppend = commandLineToolSwitch.SwitchValue.Substring(valuePos + Value.Length); 435string valueToAppend = $"{commandLineToolSwitch.SwitchValue.Substring(0, valuePos)}{switchValue}{(needsEscaping ? "\\" : "")}{prefixToAppend}"; 461clb.AppendSwitch(commandLineToolSwitch.SwitchValue + commandLineToolSwitch.Separator + numberAsString); 465clb.AppendSwitch(commandLineToolSwitch.SwitchValue + numberAsString); 485strSwitch += commandLineToolSwitch.SwitchValue + commandLineToolSwitch.Separator; 510str = commandLineToolSwitch.SwitchValue; 562if (!String.IsNullOrEmpty(commandLineToolSwitch.SwitchValue)) 567val.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))