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;
29 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))
Microsoft.Build.Tasks.UnitTests (12)
XamlTaskFactory_Tests.cs (12)
737toolSwitchValue = switchList["BasicReversible"].SwitchValue; 741toolSwitchValue = switchList["BasicReversible"].SwitchValue + switchList["BasicReversible"].FalseSuffix; 759toolSwitchValue = switchList["BasicReversible"].SwitchValue; 778string toolSwitchValue = switchList["BasicNonreversible"].SwitchValue; 790string CommandLineToolSwitchOutput = switchList["BasicString"].SwitchValue; 796CommandLineToolSwitchOutput = switchList["BasicString"].SwitchValue; 808string toolSwitchValue = switchList["BasicStringArray"].SwitchValue; 820string toolSwitchValue = switchList["BasicFileWSwitch"].SwitchValue; 832string toolSwitchValue = switchList["BasicFileWOSwitch"].SwitchValue; 844string toolSwitchValue = switchList["BasicDynamicEnum"].SwitchValue; 856string toolSwitchValue = switchList["BasicDirectory"].SwitchValue; 868string CommandLineToolSwitchOutput = switchList["BasicInteger"].SwitchValue + switchList["BasicInteger"].Separator + switchList["BasicInteger"].Number;