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