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