2 writes to SwitchValue
Microsoft.Build.Tasks.Core (2)
XamlTaskFactory\CommandLineGenerator.cs (2)
80
switchToAdd.
SwitchValue
= property.Prefix + property.SwitchName;
144
switchToAdd.
SwitchValue
= enumValue.Prefix + enumValue.SwitchName;
29 references to SwitchValue
Microsoft.Build.Tasks.Core (17)
XamlTaskFactory\CommandLineGenerator.cs (13)
354
clb.AppendSwitchIfNotNull(commandLineToolSwitch.
SwitchValue
, itemName.ItemSpec);
359
clb.AppendSwitchIfNotNull(commandLineToolSwitch.
SwitchValue
, commandLineToolSwitch.TaskItemArray, commandLineToolSwitch.Separator);
403
clb.AppendSwitchIfNotNull(commandLineToolSwitch.
SwitchValue
, fileName);
411
clb.AppendSwitchIfNotNull(commandLineToolSwitch.
SwitchValue
, arrTrimStringList, commandLineToolSwitch.Separator);
422
int valuePos = commandLineToolSwitch.
SwitchValue
.IndexOf(Value, StringComparison.OrdinalIgnoreCase);
425
string prefixToAppend = commandLineToolSwitch.
SwitchValue
.Substring(valuePos + Value.Length);
435
string valueToAppend = $"{commandLineToolSwitch.
SwitchValue
.Substring(0, valuePos)}{switchValue}{(needsEscaping ? "\\" : "")}{prefixToAppend}";
461
clb.AppendSwitch(commandLineToolSwitch.
SwitchValue
+ commandLineToolSwitch.Separator + numberAsString);
465
clb.AppendSwitch(commandLineToolSwitch.
SwitchValue
+ numberAsString);
485
strSwitch += commandLineToolSwitch.
SwitchValue
+ commandLineToolSwitch.Separator;
510
str = commandLineToolSwitch.
SwitchValue
;
562
if (!String.IsNullOrEmpty(commandLineToolSwitch.
SwitchValue
))
567
val.Insert(0, commandLineToolSwitch.
SwitchValue
);
XamlTaskFactory\XamlDataDrivenToolTask.cs (4)
124
if (switchToAdd.
SwitchValue
!= String.Empty)
126
ActiveToolSwitchesValues.Add(switchToAdd.
SwitchValue
, switchToAdd);
233
if (String.Equals(overridePair.Key, (overriddenSwitch.Value.Type == CommandLineToolSwitchType.Boolean && !overriddenSwitch.Value.BooleanValue) ? overriddenSwitch.Value.ReverseSwitchValue.TrimStart('/') : overriddenSwitch.Value.
SwitchValue
.TrimStart('/'), StringComparison.OrdinalIgnoreCase))
239
if (String.Equals(overrideTarget.Value.
SwitchValue
.TrimStart('/'), overridePair.Value, StringComparison.OrdinalIgnoreCase))
Microsoft.Build.Tasks.UnitTests (12)
XamlTaskFactory_Tests.cs (12)
737
toolSwitchValue = switchList["BasicReversible"].
SwitchValue
;
741
toolSwitchValue = switchList["BasicReversible"].
SwitchValue
+ switchList["BasicReversible"].FalseSuffix;
759
toolSwitchValue = switchList["BasicReversible"].
SwitchValue
;
778
string toolSwitchValue = switchList["BasicNonreversible"].
SwitchValue
;
790
string CommandLineToolSwitchOutput = switchList["BasicString"].
SwitchValue
;
796
CommandLineToolSwitchOutput = switchList["BasicString"].
SwitchValue
;
808
string toolSwitchValue = switchList["BasicStringArray"].
SwitchValue
;
820
string toolSwitchValue = switchList["BasicFileWSwitch"].
SwitchValue
;
832
string toolSwitchValue = switchList["BasicFileWOSwitch"].
SwitchValue
;
844
string toolSwitchValue = switchList["BasicDynamicEnum"].
SwitchValue
;
856
string toolSwitchValue = switchList["BasicDirectory"].
SwitchValue
;
868
string CommandLineToolSwitchOutput = switchList["BasicInteger"].
SwitchValue
+ switchList["BasicInteger"].Separator + switchList["BasicInteger"].Number;