38 references to Target
Microsoft.Build.CommandLine.UnitTests (35)
CommandLineSwitches_Tests.cs (35)
318
parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.
Target
);
806
Assert.Null(switches.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.
Target
));
807
Assert.False(switches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.
Target
));
809
string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.
Target
];
816
Assert.False(switches.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.
Target
, "/t:\"", "\"", false, true, false));
819
Assert.Equal("/t:\"", switches.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.
Target
));
820
Assert.True(switches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.
Target
));
822
parameters = switches[CommandLineSwitches.ParameterizedSwitch.
Target
];
829
Assert.False(switches.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.
Target
, "/t:A,\"\";B", "A,\"\";B", true, true, false));
831
Assert.Equal("/t:\" /t:A,\"\";B", switches.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.
Target
));
832
Assert.True(switches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.
Target
));
834
parameters = switches[CommandLineSwitches.ParameterizedSwitch.
Target
];
1019
Assert.False(switchesLeft.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.
Target
));
1023
switchesRight.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.
Target
, "/t:build", "build", true, true, false);
1026
Assert.True(switchesRight.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.
Target
));
1039
Assert.Equal("/t:build", switchesLeft.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.
Target
));
1040
Assert.True(switchesLeft.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.
Target
));
1042
parameters = switchesLeft[CommandLineSwitches.ParameterizedSwitch.
Target
];
1054
switchesLeft.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.
Target
, "/target:Clean", "Clean", true, true, false);
1056
Assert.True(switchesLeft.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.
Target
));
1060
switchesRight.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.
Target
, "/t:\"RESOURCES\";build", "\"RESOURCES\";build", true, true, false);
1062
Assert.True(switchesRight.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.
Target
));
1066
Assert.Equal("/t:\"RESOURCES\";build", switchesLeft.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.
Target
));
1067
Assert.True(switchesLeft.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.
Target
));
1069
string[] parameters = switchesLeft[CommandLineSwitches.ParameterizedSwitch.
Target
];
1088
switches.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.
Target
, commandLineArg, switchParameters, true, true, false);
1089
switches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.
Target
).ShouldBeTrue();
1091
switches[CommandLineSwitches.ParameterizedSwitch.
Target
].Length.ShouldBe(2);
1092
switches[CommandLineSwitches.ParameterizedSwitch.
Target
][0].ShouldBe("Clean");
1093
switches[CommandLineSwitches.ParameterizedSwitch.
Target
][1].ShouldBe("Build");
1094
switches.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.
Target
).ShouldBe(commandLineArg);
1108
switches.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.
Target
, "/t:Clean;Build", "\"Clean;Build\"", true, true, false);
1109
switches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.
Target
).ShouldBeTrue();
1111
switches[CommandLineSwitches.ParameterizedSwitch.
Target
].Length.ShouldBe(1);
1112
switches[CommandLineSwitches.ParameterizedSwitch.
Target
][0].ShouldBe("Clean;Build");
MSBuild (3)
CommandLineSwitches.cs (2)
245
new ParameterizedSwitchInfo( ["target", "t"], ParameterizedSwitch.
Target
, null, true, "MissingTargetError", true, false, "HelpMessage_9_TargetSwitch"),
724
if (parameterizedSwitch == ParameterizedSwitch.
Target
)
XMake.cs (1)
2659
targets = ProcessTargetSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.
Target
]);