47 instantiations of CommandLineSwitches
Microsoft.Build.CommandLine.UnitTests (44)
CommandLineSwitches_Tests.cs (39)
602CommandLineSwitches switches = new CommandLineSwitches(); 612CommandLineSwitches switches = new CommandLineSwitches(); 689CommandLineSwitches switches = new CommandLineSwitches(); 701CommandLineSwitches switches = new CommandLineSwitches(); 713CommandLineSwitches switches = new CommandLineSwitches(); 725CommandLineSwitches switches = new CommandLineSwitches(); 737CommandLineSwitches switches = new CommandLineSwitches(); 747CommandLineSwitches switches = new CommandLineSwitches(); 771CommandLineSwitches switches = new CommandLineSwitches(); 803CommandLineSwitches switches = new CommandLineSwitches(); 846CommandLineSwitches switches = new CommandLineSwitches(); 889CommandLineSwitches switches = new CommandLineSwitches(); 907CommandLineSwitches switchesLeft = new CommandLineSwitches(); 908CommandLineSwitches switchesRight = new CommandLineSwitches(); 942CommandLineSwitches switchesLeft = new CommandLineSwitches(); 943CommandLineSwitches switchesRight = new CommandLineSwitches(); 966CommandLineSwitches switchesLeft = new CommandLineSwitches(); 973CommandLineSwitches switchesRight1 = new CommandLineSwitches(); 991CommandLineSwitches switchesRight2 = new CommandLineSwitches(); 1014CommandLineSwitches switchesLeft = new CommandLineSwitches(); 1021CommandLineSwitches switchesRight = new CommandLineSwitches(); 1052CommandLineSwitches switchesLeft = new CommandLineSwitches(); 1058CommandLineSwitches switchesRight = new CommandLineSwitches(); 1087CommandLineSwitches switches = new CommandLineSwitches(); 1107CommandLineSwitches switches = new CommandLineSwitches(); 1119CommandLineSwitches switchesLeft = new CommandLineSwitches(); 1125CommandLineSwitches switchesRight = new CommandLineSwitches(); 1211CommandLineSwitches switches = new CommandLineSwitches(); 1217switches = new CommandLineSwitches(); 1266CommandLineSwitches commandLineSwitches = new CommandLineSwitches(); 1281CommandLineSwitches commandLineSwitches = new CommandLineSwitches(); 1306CommandLineSwitches commandLineSwitches = new CommandLineSwitches(); 1329CommandLineSwitches commandLineSwitches = new CommandLineSwitches(); 1351CommandLineSwitches commandLineSwitches = new CommandLineSwitches(); 1368CommandLineSwitches commandLineSwitches = new CommandLineSwitches(); 1388CommandLineSwitches commandLineSwitches = new(); 1393commandLineSwitches = new(); 1408CommandLineSwitches commandLineSwitches = new CommandLineSwitches(); 1433CommandLineSwitches commandLineSwitches = new CommandLineSwitches();
XMake_Tests.cs (5)
52CommandLineSwitches switches = new CommandLineSwitches(); 67var switches = new CommandLineSwitches(); 84CommandLineSwitches switches = new CommandLineSwitches(); 101CommandLineSwitches switches = new CommandLineSwitches(); 121CommandLineSwitches switches = new CommandLineSwitches();
MSBuild (3)
XMake.cs (3)
2011switchesNotFromAutoResponseFile = new CommandLineSwitches(); 2016switchesFromAutoResponseFile = new CommandLineSwitches(); 3018CommandLineSwitches commandLineSwitches = new CommandLineSwitches();
383 references to CommandLineSwitches
Microsoft.Build.CommandLine.UnitTests (250)
CommandLineSwitches_Tests.cs (240)
37CommandLineSwitches.ParameterlessSwitch parameterlessSwitch; 40CommandLineSwitches.IsParameterlessSwitch("bogus", out parameterlessSwitch, out duplicateSwitchErrorMessage).ShouldBeFalse(); 41parameterlessSwitch.ShouldBe(CommandLineSwitches.ParameterlessSwitch.Invalid); 44CommandLineSwitches.ParameterizedSwitch parameterizedSwitch; 50CommandLineSwitches.IsParameterizedSwitch("bogus", out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeFalse(); 51parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.Invalid); 67CommandLineSwitches.IsParameterlessSwitch(help, out CommandLineSwitches.ParameterlessSwitch parameterlessSwitch, out string duplicateSwitchErrorMessage).ShouldBeTrue(); 68parameterlessSwitch.ShouldBe(CommandLineSwitches.ParameterlessSwitch.Help); 81CommandLineSwitches.IsParameterlessSwitch(version, out CommandLineSwitches.ParameterlessSwitch parameterlessSwitch, out string duplicateSwitchErrorMessage).ShouldBeTrue(); 82parameterlessSwitch.ShouldBe(CommandLineSwitches.ParameterlessSwitch.Version); 92CommandLineSwitches.IsParameterlessSwitch(nologo, out CommandLineSwitches.ParameterlessSwitch parameterlessSwitch, out string duplicateSwitchErrorMessage).ShouldBeTrue(); 93parameterlessSwitch.ShouldBe(CommandLineSwitches.ParameterlessSwitch.NoLogo); 106CommandLineSwitches.IsParameterlessSwitch(noautoresponse, out CommandLineSwitches.ParameterlessSwitch parameterlessSwitch, out string duplicateSwitchErrorMessage).ShouldBeTrue(); 107parameterlessSwitch.ShouldBe(CommandLineSwitches.ParameterlessSwitch.NoAutoResponse); 120CommandLineSwitches.ParameterlessSwitch parameterlessSwitch; 123CommandLineSwitches.IsParameterlessSwitch(noconsolelogger, out parameterlessSwitch, out duplicateSwitchErrorMessage).ShouldBeTrue(); 124parameterlessSwitch.ShouldBe(CommandLineSwitches.ParameterlessSwitch.NoConsoleLogger); 136CommandLineSwitches.ParameterlessSwitch parameterlessSwitch; 139CommandLineSwitches.IsParameterlessSwitch(filelogger, out parameterlessSwitch, out duplicateSwitchErrorMessage).ShouldBeTrue(); 140parameterlessSwitch.ShouldBe(CommandLineSwitches.ParameterlessSwitch.FileLogger); 152CommandLineSwitches.ParameterlessSwitch parameterlessSwitch; 155CommandLineSwitches.IsParameterlessSwitch(distributedfilelogger, out parameterlessSwitch, out duplicateSwitchErrorMessage).ShouldBeTrue(); 156parameterlessSwitch.ShouldBe(CommandLineSwitches.ParameterlessSwitch.DistributedFileLogger); 173CommandLineSwitches.ParameterizedSwitch parameterlessSwitch; 176CommandLineSwitches.IsParameterizedSwitch(terminallogger, out parameterlessSwitch, out duplicateSwitchErrorMessage, out bool multipleParametersAllowed, out string missingParametersErrorMessage, out bool unquoteParameters, out bool emptyParametersAllowed).ShouldBeTrue(); 177parameterlessSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.TerminalLogger); 192CommandLineSwitches.ParameterizedSwitch parameterizedSwitch; 199CommandLineSwitches.IsParameterizedSwitch(fileloggerparameters, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue(); 200parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.FileLoggerParameters); 214CommandLineSwitches.ParameterizedSwitch parameterizedSwitch; 221CommandLineSwitches.IsParameterizedSwitch(terminalLoggerParameters, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue(); 222parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.TerminalLoggerParameters); 237CommandLineSwitches.ParameterizedSwitch parameterizedSwitch; 244CommandLineSwitches.IsParameterizedSwitch(nodereuse, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue(); 245parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.NodeReuse); 256CommandLineSwitches.ParameterizedSwitch parameterizedSwitch; 263Assert.True(CommandLineSwitches.IsParameterizedSwitch(null, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed)); 264Assert.Equal(CommandLineSwitches.ParameterizedSwitch.Project, parameterizedSwitch); 271Assert.False(CommandLineSwitches.IsParameterizedSwitch(String.Empty, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed)); 272Assert.Equal(CommandLineSwitches.ParameterizedSwitch.Invalid, parameterizedSwitch); 287CommandLineSwitches.ParameterizedSwitch parameterizedSwitch; 294CommandLineSwitches.IsParameterizedSwitch(ignoreprojectextensions, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue(); 295parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.IgnoreProjectExtensions); 310CommandLineSwitches.ParameterizedSwitch parameterizedSwitch; 317CommandLineSwitches.IsParameterizedSwitch(target, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue(); 318parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.Target); 333CommandLineSwitches.ParameterizedSwitch parameterizedSwitch; 340CommandLineSwitches.IsParameterizedSwitch(property, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue(); 341parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.Property); 356CommandLineSwitches.IsParameterizedSwitch(property, out CommandLineSwitches.ParameterizedSwitch parameterizedSwitch, out string duplicateSwitchErrorMessage, out bool multipleParametersAllowed, out string missingParametersErrorMessage, out bool unquoteParameters, out bool emptyParametersAllowed).ShouldBeTrue(); 357parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.RestoreProperty); 372CommandLineSwitches.ParameterizedSwitch parameterizedSwitch; 379CommandLineSwitches.IsParameterizedSwitch(logger, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue(); 380parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.Logger); 395CommandLineSwitches.ParameterizedSwitch parameterizedSwitch; 402CommandLineSwitches.IsParameterizedSwitch(verbosity, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue(); 403parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.Verbosity); 419CommandLineSwitches.IsParameterizedSwitch( 427parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.DetailedSummary); 442CommandLineSwitches.ParameterizedSwitch parameterizedSwitch; 449CommandLineSwitches.IsParameterizedSwitch(maxcpucount, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue(); 450parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.MaxCPUCount); 488CommandLineSwitches.ParameterizedSwitch parameterizedSwitch; 495CommandLineSwitches.IsParameterizedSwitch(preprocess, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue(); 496parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.Preprocess); 506CommandLineSwitches.IsParameterizedSwitch( 508out CommandLineSwitches.ParameterizedSwitch parameterizedSwitch, 515parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.GetProperty); 524CommandLineSwitches.IsParameterizedSwitch( 526out CommandLineSwitches.ParameterizedSwitch parameterizedSwitch, 533parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.GetItem); 542CommandLineSwitches.IsParameterizedSwitch( 544out CommandLineSwitches.ParameterizedSwitch parameterizedSwitch, 551parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.GetTargetResult); 563CommandLineSwitches.IsParameterizedSwitch( 571parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.Targets); 584CommandLineSwitches.IsParameterizedSwitch( 586out CommandLineSwitches.ParameterizedSwitch parameterizedSwitch, 593parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.FeatureAvailability); 602CommandLineSwitches switches = new CommandLineSwitches(); 606switches[CommandLineSwitches.ParameterizedSwitch.Targets].ShouldBe(new[] { "targets.txt" }); 612CommandLineSwitches switches = new CommandLineSwitches(); 625CommandLineSwitches.ParameterizedSwitch parameterizedSwitch; 632CommandLineSwitches.IsParameterizedSwitch(isolateprojects, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue(); 633parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.IsolateProjects); 648CommandLineSwitches.ParameterizedSwitch parameterizedSwitch; 655CommandLineSwitches.IsParameterizedSwitch(graph, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed).ShouldBeTrue(); 656parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.GraphBuild); 671CommandLineSwitches.IsParameterizedSwitch(lowpriority, 672out CommandLineSwitches.ParameterizedSwitch parameterizedSwitch, 678parameterizedSwitch.ShouldBe(CommandLineSwitches.ParameterizedSwitch.LowPriority); 689CommandLineSwitches switches = new CommandLineSwitches(); 693switches[CommandLineSwitches.ParameterizedSwitch.GraphBuild].ShouldBe(new[] { "true", " NoBuild ", " ", "foo" }); 701CommandLineSwitches switches = new CommandLineSwitches(); 705switches[CommandLineSwitches.ParameterizedSwitch.GraphBuild].ShouldBe(Array.Empty<string>()); 713CommandLineSwitches switches = new CommandLineSwitches(); 717switches[CommandLineSwitches.ParameterizedSwitch.InputResultsCaches].ShouldBe(new[] { null, "a", "b", "c", "d" }); 725CommandLineSwitches switches = new CommandLineSwitches(); 729switches[CommandLineSwitches.ParameterizedSwitch.OutputResultsCache].ShouldBe(new[] { "a" }); 737CommandLineSwitches switches = new CommandLineSwitches(); 747CommandLineSwitches switches = new CommandLineSwitches(); 749switches.SetParameterlessSwitch(CommandLineSwitches.ParameterlessSwitch.NoLogo, "/nologo"); 751Assert.Equal("/nologo", switches.GetParameterlessSwitchCommandLineArg(CommandLineSwitches.ParameterlessSwitch.NoLogo)); 752Assert.True(switches.IsParameterlessSwitchSet(CommandLineSwitches.ParameterlessSwitch.NoLogo)); 753Assert.True(switches[CommandLineSwitches.ParameterlessSwitch.NoLogo]); 756switches.SetParameterlessSwitch(CommandLineSwitches.ParameterlessSwitch.NoLogo, "-NOLOGO"); 758Assert.Equal("-NOLOGO", switches.GetParameterlessSwitchCommandLineArg(CommandLineSwitches.ParameterlessSwitch.NoLogo)); 759Assert.True(switches.IsParameterlessSwitchSet(CommandLineSwitches.ParameterlessSwitch.NoLogo)); 760Assert.True(switches[CommandLineSwitches.ParameterlessSwitch.NoLogo]); 763Assert.Null(switches.GetParameterlessSwitchCommandLineArg(CommandLineSwitches.ParameterlessSwitch.Version)); 764Assert.False(switches.IsParameterlessSwitchSet(CommandLineSwitches.ParameterlessSwitch.Version)); 765Assert.False(switches[CommandLineSwitches.ParameterlessSwitch.Version]); 771CommandLineSwitches switches = new CommandLineSwitches(); 773Assert.True(switches.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.Verbosity, "/v:q", "q", false, true, false)); 775Assert.Equal("/v:q", switches.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.Verbosity)); 776Assert.True(switches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Verbosity)); 778string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.Verbosity]; 786Assert.True(switches.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.Verbosity, "/verbosity:\"diag\";minimal", "\"diag\";minimal", true, true, false)); 788Assert.Equal("/v:q /verbosity:\"diag\";minimal", switches.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.Verbosity)); 789Assert.True(switches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Verbosity)); 791parameters = switches[CommandLineSwitches.ParameterizedSwitch.Verbosity]; 803CommandLineSwitches switches = new CommandLineSwitches(); 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]; 846CommandLineSwitches switches = new CommandLineSwitches(); 849Assert.Null(switches.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.Logger)); 850Assert.False(switches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Logger)); 852string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.Logger]; 858Assert.True(switches.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.Logger, "/l:\"", "\"", false, false, false)); 860Assert.Equal("/l:\"", switches.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.Logger)); 861Assert.True(switches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Logger)); 863parameters = switches[CommandLineSwitches.ParameterizedSwitch.Logger]; 871Assert.True(switches.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.Logger, "/LOGGER:\"\",asm;\"p,a;r\"", "\"\",asm;\"p,a;r\"", true, false, false)); 873Assert.Equal("/l:\" /LOGGER:\"\",asm;\"p,a;r\"", switches.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.Logger)); 874Assert.True(switches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Logger)); 876parameters = switches[CommandLineSwitches.ParameterizedSwitch.Logger]; 889CommandLineSwitches switches = new CommandLineSwitches(); 891Assert.True(switches.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.WarningsAsErrors, "/warnaserror", "", multipleParametersAllowed: true, unquoteParameters: false, emptyParametersAllowed: true)); 893Assert.True(switches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.WarningsAsErrors)); 895string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.WarningsAsErrors]; 907CommandLineSwitches switchesLeft = new CommandLineSwitches(); 908CommandLineSwitches switchesRight = new CommandLineSwitches(); 942CommandLineSwitches switchesLeft = new CommandLineSwitches(); 943CommandLineSwitches switchesRight = new CommandLineSwitches(); 966CommandLineSwitches switchesLeft = new CommandLineSwitches(); 968switchesLeft.SetParameterlessSwitch(CommandLineSwitches.ParameterlessSwitch.Help, "/?"); 970Assert.True(switchesLeft.IsParameterlessSwitchSet(CommandLineSwitches.ParameterlessSwitch.Help)); 971Assert.False(switchesLeft.IsParameterlessSwitchSet(CommandLineSwitches.ParameterlessSwitch.NoConsoleLogger)); 973CommandLineSwitches switchesRight1 = new CommandLineSwitches(); 975switchesRight1.SetParameterlessSwitch(CommandLineSwitches.ParameterlessSwitch.NoConsoleLogger, "/noconlog"); 977Assert.False(switchesRight1.IsParameterlessSwitchSet(CommandLineSwitches.ParameterlessSwitch.Help)); 978Assert.True(switchesRight1.IsParameterlessSwitchSet(CommandLineSwitches.ParameterlessSwitch.NoConsoleLogger)); 982Assert.Equal("/noconlog", switchesLeft.GetParameterlessSwitchCommandLineArg(CommandLineSwitches.ParameterlessSwitch.NoConsoleLogger)); 983Assert.True(switchesLeft.IsParameterlessSwitchSet(CommandLineSwitches.ParameterlessSwitch.NoConsoleLogger)); 984Assert.True(switchesLeft[CommandLineSwitches.ParameterlessSwitch.NoConsoleLogger]); 987Assert.Equal("/?", switchesLeft.GetParameterlessSwitchCommandLineArg(CommandLineSwitches.ParameterlessSwitch.Help)); 988Assert.True(switchesLeft.IsParameterlessSwitchSet(CommandLineSwitches.ParameterlessSwitch.Help)); 989Assert.True(switchesLeft[CommandLineSwitches.ParameterlessSwitch.Help]); 991CommandLineSwitches switchesRight2 = new CommandLineSwitches(); 993switchesRight2.SetParameterlessSwitch(CommandLineSwitches.ParameterlessSwitch.NoConsoleLogger, "/NOCONSOLELOGGER"); 995Assert.False(switchesRight2.IsParameterlessSwitchSet(CommandLineSwitches.ParameterlessSwitch.Help)); 996Assert.True(switchesRight2.IsParameterlessSwitchSet(CommandLineSwitches.ParameterlessSwitch.NoConsoleLogger)); 1000Assert.Equal("/NOCONSOLELOGGER", switchesLeft.GetParameterlessSwitchCommandLineArg(CommandLineSwitches.ParameterlessSwitch.NoConsoleLogger)); 1001Assert.True(switchesLeft.IsParameterlessSwitchSet(CommandLineSwitches.ParameterlessSwitch.NoConsoleLogger)); 1002Assert.True(switchesLeft[CommandLineSwitches.ParameterlessSwitch.NoConsoleLogger]); 1004Assert.Equal("/?", switchesLeft.GetParameterlessSwitchCommandLineArg(CommandLineSwitches.ParameterlessSwitch.Help)); 1005Assert.True(switchesLeft.IsParameterlessSwitchSet(CommandLineSwitches.ParameterlessSwitch.Help)); 1006Assert.True(switchesLeft[CommandLineSwitches.ParameterlessSwitch.Help]); 1014CommandLineSwitches switchesLeft = new CommandLineSwitches(); 1016switchesLeft.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.Project, "tempproject.proj", "tempproject.proj", false, true, false); 1018Assert.True(switchesLeft.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Project)); 1019Assert.False(switchesLeft.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Target)); 1021CommandLineSwitches switchesRight = new CommandLineSwitches(); 1023switchesRight.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.Target, "/t:build", "build", true, true, false); 1025Assert.False(switchesRight.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Project)); 1026Assert.True(switchesRight.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Target)); 1030Assert.Equal("tempproject.proj", switchesLeft.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.Project)); 1031Assert.True(switchesLeft.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Project)); 1033string[] parameters = switchesLeft[CommandLineSwitches.ParameterizedSwitch.Project]; 1039Assert.Equal("/t:build", switchesLeft.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.Target)); 1040Assert.True(switchesLeft.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Target)); 1042parameters = switchesLeft[CommandLineSwitches.ParameterizedSwitch.Target]; 1052CommandLineSwitches switchesLeft = new CommandLineSwitches(); 1054switchesLeft.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.Target, "/target:Clean", "Clean", true, true, false); 1056Assert.True(switchesLeft.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Target)); 1058CommandLineSwitches switchesRight = new CommandLineSwitches(); 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]; 1087CommandLineSwitches switches = new CommandLineSwitches(); 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); 1107CommandLineSwitches switches = new CommandLineSwitches(); 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"); 1119CommandLineSwitches switchesLeft = new CommandLineSwitches(); 1121switchesLeft.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.Project, "tempproject.proj", "tempproject.proj", false, true, false); 1123Assert.True(switchesLeft.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Project)); 1125CommandLineSwitches switchesRight = new CommandLineSwitches(); 1127switchesRight.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.Project, "Rhubarb.proj", "Rhubarb.proj", false, true, false); 1129Assert.True(switchesRight.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Project)); 1133Assert.Equal("tempproject.proj", switchesLeft.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.Project)); 1134Assert.True(switchesLeft.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Project)); 1136string[] parameters = switchesLeft[CommandLineSwitches.ParameterizedSwitch.Project]; 1211CommandLineSwitches switches = new CommandLineSwitches(); 1213switches.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.Verbosity, "/v:q", "q", false, true, false); 1219switches.SetParameterlessSwitch(CommandLineSwitches.ParameterlessSwitch.Help, "/?"); 1266CommandLineSwitches commandLineSwitches = new CommandLineSwitches(); 1281CommandLineSwitches commandLineSwitches = new CommandLineSwitches(); 1306CommandLineSwitches commandLineSwitches = new CommandLineSwitches(); 1329CommandLineSwitches commandLineSwitches = new CommandLineSwitches(); 1351CommandLineSwitches commandLineSwitches = new CommandLineSwitches(); 1368CommandLineSwitches commandLineSwitches = new CommandLineSwitches(); 1388CommandLineSwitches commandLineSwitches = new(); 1408CommandLineSwitches commandLineSwitches = new CommandLineSwitches(); 1433CommandLineSwitches commandLineSwitches = new CommandLineSwitches(); 1436commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.ProfileEvaluation][0].ShouldBe("no-file"); 1601private void VerifySwitchError(CommandLineSwitches switches, string badCommandLineArg, string expectedMessage = null)
XMake_Tests.cs (10)
52CommandLineSwitches switches = new CommandLineSwitches(); 59string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.Property]; 67var switches = new CommandLineSwitches(); 76string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.Property]; 84CommandLineSwitches switches = new CommandLineSwitches(); 91string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.MaxCPUCount]; 101CommandLineSwitches switches = new CommandLineSwitches(); 108string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.MaxCPUCount]; 121CommandLineSwitches switches = new CommandLineSwitches(); 128string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.MaxCPUCount];
MSBuild (133)
CommandLineSwitches.cs (1)
906internal void Append(CommandLineSwitches switchesToAppend, string commandLine = "")
XMake.cs (132)
319GatherAllSwitches(commandLine, out var switchesFromAutoResponseFile, out var switchesNotFromAutoResponseFile, out string fullCommandLine); 320CommandLineSwitches commandLineSwitches = CombineSwitchesRespectingPriority(switchesFromAutoResponseFile, switchesNotFromAutoResponseFile, fullCommandLine); 325string projectFile = ProcessProjectSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Project], commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.IgnoreProjectExtensions], Directory.GetFiles); 326if (commandLineSwitches[CommandLineSwitches.ParameterlessSwitch.Help] || 327commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.NodeMode) || 328commandLineSwitches[CommandLineSwitches.ParameterlessSwitch.Version] || 330!ProcessNodeReuseSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.NodeReuse]) || 353private static bool IsInteractiveBuild(CommandLineSwitches commandLineSwitches) 356if (commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Interactive) && 357ProcessBooleanSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Interactive], true, "InvalidInteractiveValue")) 363foreach (string parameter in commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Property]) 740GatherAllSwitches(commandLine, out var switchesFromAutoResponseFile, out var switchesNotFromAutoResponseFile, out _); 790CommandLineSwitches.SwitchesFromResponseFiles = null; 799&& switchesNotFromAutoResponseFile[CommandLineSwitches.ParameterizedSwitch.MaxCPUCount].Length == 0 800&& switchesFromAutoResponseFile[CommandLineSwitches.ParameterizedSwitch.MaxCPUCount].Length == 0 1225CommandLineSwitches.SwitchesFromResponseFiles = new(); 1430Console.WriteLine(ResourceUtilities.GetResourceString("UnsupportedSwitchForSolutionFiles"), CommandLineSwitches.ParameterizedSwitch.Preprocess); 1451Console.WriteLine(ResourceUtilities.GetResourceString("UnsupportedSwitchForSolutionFiles"), CommandLineSwitches.ParameterizedSwitch.Targets); 1976out CommandLineSwitches switchesFromAutoResponseFile, out CommandLineSwitches switchesNotFromAutoResponseFile, out string fullCommandLine) 2017if (!switchesNotFromAutoResponseFile[CommandLineSwitches.ParameterlessSwitch.NoAutoResponse]) 2030internal static void GatherCommandLineSwitches(List<string> commandLineArgs, CommandLineSwitches commandLineSwitches, string commandLine = "") 2105if (CommandLineSwitches.IsParameterlessSwitch(switchName, out var parameterlessSwitch, out var duplicateSwitchErrorMessage)) 2109else if (CommandLineSwitches.IsParameterizedSwitch(switchName, out var parameterizedSwitch, out duplicateSwitchErrorMessage, out var multipleParametersAllowed, out var missingParametersErrorMessage, out var unquoteParameters, out var allowEmptyParameters)) 2201private static void GatherResponseFileSwitch(string unquotedCommandLineArg, CommandLineSwitches commandLineSwitches, string commandLine) 2266CommandLineSwitches.SwitchesFromResponseFiles.Add((responseFile, string.Join(" ", argsFromResponseFile))); 2299CommandLineSwitches commandLineSwitches, 2300CommandLineSwitches.ParameterlessSwitch parameterlessSwitch, 2339CommandLineSwitches commandLineSwitches, 2340CommandLineSwitches.ParameterizedSwitch parameterizedSwitch, 2361if (parameterizedSwitch == CommandLineSwitches.ParameterizedSwitch.Project && IsEnvironmentVariable(switchParameters)) 2433private static bool GatherAutoResponseFileSwitches(string path, CommandLineSwitches switchesFromAutoResponseFile, string commandLine) 2439private static bool GatherAutoResponseFileSwitchesFromFullPath(string autoResponseFile, CommandLineSwitches switchesFromAutoResponseFile, string commandLine) 2450if (switchesFromAutoResponseFile[CommandLineSwitches.ParameterlessSwitch.NoAutoResponse]) 2453switchesFromAutoResponseFile.GetParameterlessSwitchCommandLineArg(CommandLineSwitches.ParameterlessSwitch.NoAutoResponse), commandLine); 2475CommandLineSwitches switchesFromAutoResponseFile, 2476CommandLineSwitches switchesNotFromAutoResponseFile, 2521CommandLineSwitches commandLineSwitches = CombineSwitchesRespectingPriority(switchesFromAutoResponseFile, switchesNotFromAutoResponseFile, commandLine); 2524if (commandLineSwitches[CommandLineSwitches.ParameterlessSwitch.WaitForDebugger]) 2552if (commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.LowPriority)) 2554lowPriority = ProcessBooleanSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.LowPriority], defaultValue: true, resourceName: "InvalidLowPriorityValue"); 2576if (commandLineSwitches[CommandLineSwitches.ParameterlessSwitch.Help]) 2580else if (commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.NodeMode)) 2590if (commandLineSwitches[CommandLineSwitches.ParameterlessSwitch.Version]) 2595else if (commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.FeatureAvailability)) 2597ShowFeatureAvailability(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.FeatureAvailability]); 2656projectFile = ProcessProjectSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Project], commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.IgnoreProjectExtensions], Directory.GetFiles); 2659targets = ProcessTargetSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Target]); 2662getProperty = commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.GetProperty] ?? []; 2663getItem = commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.GetItem] ?? []; 2664getTargetResult = commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.GetTargetResult] ?? []; 2665getResultOutputFile = commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.GetResultOutputFile].FirstOrDefault() ?? string.Empty; 2670commandLineSwitches.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.Verbosity, "q", "q", true, true, true); 2676toolsVersion = ProcessToolsVersionSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.ToolsVersion]); 2679globalProperties = ProcessPropertySwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Property]); 2682restoreProperties = ProcessPropertySwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.RestoreProperty]); 2685cpuCount = ProcessMaxCPUCountSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.MaxCPUCount]); 2689enableNodeReuse = ProcessNodeReuseSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.NodeReuse]); 2693if (commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Preprocess)) 2695preprocessWriter = ProcessPreprocessSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Preprocess]); 2700if (commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Targets)) 2702targetsWriter = ProcessTargetsSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Targets]); 2711if (commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Restore)) 2713enableRestore = ProcessBooleanSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Restore], defaultValue: true, resourceName: "InvalidRestoreValue"); 2716if (commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Interactive)) 2718interactive = ProcessBooleanSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Interactive], defaultValue: true, resourceName: "InvalidInteractiveValue"); 2721if (commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.IsolateProjects)) 2723isolateProjects = ProcessIsolateProjectsSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.IsolateProjects]); 2726if (commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.GraphBuild)) 2728graphBuild = ProcessGraphBuildSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.GraphBuild]); 2731question = commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Question); 2743commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Logger], 2744commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.DistributedLogger], 2745commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Verbosity], 2746commandLineSwitches[CommandLineSwitches.ParameterlessSwitch.NoConsoleLogger], 2747commandLineSwitches[CommandLineSwitches.ParameterlessSwitch.DistributedFileLogger], 2750commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.FileLoggerParameters], // used by DistributedFileLogger 2751commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.ConsoleLoggerParameters], 2752commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.BinaryLogger], 2753commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.ProfileEvaluation], 2769if (commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.DetailedSummary)) 2771detailedSummary = ProcessBooleanSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.DetailedSummary], defaultValue: true, resourceName: "InvalidDetailedSummaryValue"); 2791if (commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.WarningsNotAsErrors) && 2795commandLineSwitches.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.WarningsNotAsErrors), 2807private static bool IsBuildCheckEnabled(CommandLineSwitches commandLineSwitches) 2810bool isBuildCheckEnabled = commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Check); 2814private static bool ProcessTerminalLoggerConfiguration(CommandLineSwitches commandLineSwitches, out string aggregatedParameters) 2900bool TryFromCommandLine(CommandLineSwitches commandLineSwitches1) 2902if (!commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.TerminalLogger)) 2908string[] switches = commandLineSwitches1[CommandLineSwitches.ParameterizedSwitch.TerminalLogger]; 2974string AggregateParameters(CommandLineSwitches switches) 2976string[] terminalLoggerParameters = switches[CommandLineSwitches.ParameterizedSwitch.TerminalLoggerParameters]; 3011private static CommandLineSwitches CombineSwitchesRespectingPriority(CommandLineSwitches switchesFromAutoResponseFile, CommandLineSwitches switchesNotFromAutoResponseFile, string commandLine) 3018CommandLineSwitches commandLineSwitches = new CommandLineSwitches(); 3053private static bool CheckAndGatherProjectAutoResponseFile(CommandLineSwitches switchesFromAutoResponseFile, CommandLineSwitches commandLineSwitches, bool recursing, string commandLine) 3057var projectDirectory = GetProjectDirectory(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Project]); 3059if (!recursing && !commandLineSwitches[CommandLineSwitches.ParameterlessSwitch.NoAutoResponse]) 3077private static bool WarningsAsErrorsSwitchIsEmpty(CommandLineSwitches commandLineSwitches) 3079string val = commandLineSwitches.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.WarningsAsErrors); 3153private static string ProcessOutputResultsCache(CommandLineSwitches commandLineSwitches) 3155return commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.OutputResultsCache) 3156? commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.OutputResultsCache].FirstOrDefault(p => p != null) ?? string.Empty 3160private static string[] ProcessInputResultsCaches(CommandLineSwitches commandLineSwitches) 3162return commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.InputResultsCaches) 3163? commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.InputResultsCaches].Where(p => p != null).ToArray() 3253private static ISet<string> ProcessWarningRelatedSwitch(CommandLineSwitches commandLineSwitches, CommandLineSwitches.ParameterizedSwitch warningSwitch) 3282internal static ISet<string> ProcessWarnAsErrorSwitch(CommandLineSwitches commandLineSwitches) 3284return ProcessWarningRelatedSwitch(commandLineSwitches, CommandLineSwitches.ParameterizedSwitch.WarningsAsErrors); 3287internal static ISet<string> ProcessWarnAsMessageSwitch(CommandLineSwitches commandLineSwitches) 3289return ProcessWarningRelatedSwitch(commandLineSwitches, CommandLineSwitches.ParameterizedSwitch.WarningsAsMessages); 3292internal static ISet<string> ProcessWarnNotAsErrorSwitch(CommandLineSwitches commandLineSwitches) 3294return ProcessWarningRelatedSwitch(commandLineSwitches, CommandLineSwitches.ParameterizedSwitch.WarningsNotAsErrors); 3376private static void StartLocalNode(CommandLineSwitches commandLineSwitches, bool lowpriority) 3378string[] input = commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.NodeMode]; 3409bool nodeReuse = ProcessNodeReuseSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.NodeReuse]); 4556private static void DisplayVersionMessageIfNeeded(bool recursing, bool useTerminalLogger, CommandLineSwitches commandLineSwitches) 4567bool shouldShowLogo = !commandLineSwitches[CommandLineSwitches.ParameterlessSwitch.NoLogo] && 4568!commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Preprocess) && 4569!commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.GetProperty) && 4570!commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.GetItem) && 4571!commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.GetTargetResult) && 4572!commandLineSwitches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.FeatureAvailability) && 4592foreach (string parameterizedSwitchRsouceId in CommandLineSwitches.GetParameterizedSwitchResourceIds()) 4596foreach (string parameterlessSwitchRsouceId in CommandLineSwitches.GetParameterlessSwitchResourceIds())