24 references to CommandLineToolSwitchType
Microsoft.Build.Tasks.Core (24)
XamlTaskFactory\CommandLineGenerator.cs (11)
84
switchToAdd.Type =
CommandLineToolSwitchType
.Boolean;
94
switchToAdd.Type =
CommandLineToolSwitchType
.Integer;
115
switchToAdd.Type =
CommandLineToolSwitchType
.ITaskItemArray;
123
switchToAdd.Type =
CommandLineToolSwitchType
.String;
157
switchToAdd.Type =
CommandLineToolSwitchType
.StringArray;
244
case
CommandLineToolSwitchType
.Boolean:
247
case
CommandLineToolSwitchType
.String:
250
case
CommandLineToolSwitchType
.StringArray:
253
case
CommandLineToolSwitchType
.Integer:
256
case
CommandLineToolSwitchType
.ITaskItemArray:
609
if (property.Type ==
CommandLineToolSwitchType
.ITaskItemArray)
XamlTaskFactory\CommandLineToolSwitch.cs (10)
120
public CommandLineToolSwitch(
CommandLineToolSwitchType
toolType)
175
public
CommandLineToolSwitchType
Type { get; set; }
243
ErrorUtilities.VerifyThrow(Type ==
CommandLineToolSwitchType
.Boolean, "InvalidType", TypeBoolean);
249
ErrorUtilities.VerifyThrow(Type ==
CommandLineToolSwitchType
.Boolean, "InvalidType", TypeBoolean);
261
ErrorUtilities.VerifyThrow(Type ==
CommandLineToolSwitchType
.Integer, "InvalidType", TypeInteger);
267
ErrorUtilities.VerifyThrow(Type ==
CommandLineToolSwitchType
.Integer, "InvalidType", TypeInteger);
280
ErrorUtilities.VerifyThrow(Type ==
CommandLineToolSwitchType
.StringArray, "InvalidType", TypeStringArray);
286
ErrorUtilities.VerifyThrow(Type ==
CommandLineToolSwitchType
.StringArray, "InvalidType", TypeStringArray);
299
ErrorUtilities.VerifyThrow(Type ==
CommandLineToolSwitchType
.ITaskItemArray, "InvalidType", TypeITaskItemArray);
305
ErrorUtilities.VerifyThrow(Type ==
CommandLineToolSwitchType
.ITaskItemArray, "InvalidType", TypeITaskItemArray);
XamlTaskFactory\XamlDataDrivenToolTask.cs (3)
122
if (switchToAdd.Type !=
CommandLineToolSwitchType
.Boolean || switchToAdd.BooleanValue)
233
if (String.Equals(overridePair.Key, (overriddenSwitch.Value.Type ==
CommandLineToolSwitchType
.Boolean && !overriddenSwitch.Value.BooleanValue) ? overriddenSwitch.Value.ReverseSwitchValue.TrimStart('/') : overriddenSwitch.Value.SwitchValue.TrimStart('/'), StringComparison.OrdinalIgnoreCase))
244
else if ((overrideTarget.Value.Type ==
CommandLineToolSwitchType
.Boolean) && (!overrideTarget.Value.BooleanValue) && String.Equals(overrideTarget.Value.ReverseSwitchValue.TrimStart('/'), overridePair.Value, StringComparison.OrdinalIgnoreCase))