24 references to CommandLineToolSwitchType
Microsoft.Build.Tasks.Core (24)
XamlTaskFactory\CommandLineGenerator.cs (11)
89switchToAdd.Type = CommandLineToolSwitchType.Boolean; 99switchToAdd.Type = CommandLineToolSwitchType.Integer; 120switchToAdd.Type = CommandLineToolSwitchType.ITaskItemArray; 128switchToAdd.Type = CommandLineToolSwitchType.String; 162switchToAdd.Type = CommandLineToolSwitchType.StringArray; 249case CommandLineToolSwitchType.Boolean: 252case CommandLineToolSwitchType.String: 255case CommandLineToolSwitchType.StringArray: 258case CommandLineToolSwitchType.Integer: 261case CommandLineToolSwitchType.ITaskItemArray: 613if (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))