73 references to
Microsoft.Build.CommandLine.UnitTests (29)
CommandLineSwitches_Tests.cs (24)
606switches[CommandLineSwitches.ParameterizedSwitch.Targets].ShouldBe(new[] { "targets.txt" }); 693switches[CommandLineSwitches.ParameterizedSwitch.GraphBuild].ShouldBe(new[] { "true", " NoBuild ", " ", "foo" }); 705switches[CommandLineSwitches.ParameterizedSwitch.GraphBuild].ShouldBe(Array.Empty<string>()); 717switches[CommandLineSwitches.ParameterizedSwitch.InputResultsCaches].ShouldBe(new[] { null, "a", "b", "c", "d" }); 729switches[CommandLineSwitches.ParameterizedSwitch.OutputResultsCache].ShouldBe(new[] { "a" }); 778string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.Verbosity]; 791parameters = switches[CommandLineSwitches.ParameterizedSwitch.Verbosity]; 809string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.Target]; 822parameters = switches[CommandLineSwitches.ParameterizedSwitch.Target]; 834parameters = switches[CommandLineSwitches.ParameterizedSwitch.Target]; 852string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.Logger]; 863parameters = switches[CommandLineSwitches.ParameterizedSwitch.Logger]; 876parameters = switches[CommandLineSwitches.ParameterizedSwitch.Logger]; 895string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.WarningsAsErrors]; 1033string[] parameters = switchesLeft[CommandLineSwitches.ParameterizedSwitch.Project]; 1042parameters = switchesLeft[CommandLineSwitches.ParameterizedSwitch.Target]; 1069string[] parameters = switchesLeft[CommandLineSwitches.ParameterizedSwitch.Target]; 1091switches[CommandLineSwitches.ParameterizedSwitch.Target].Length.ShouldBe(2); 1092switches[CommandLineSwitches.ParameterizedSwitch.Target][0].ShouldBe("Clean"); 1093switches[CommandLineSwitches.ParameterizedSwitch.Target][1].ShouldBe("Build"); 1111switches[CommandLineSwitches.ParameterizedSwitch.Target].Length.ShouldBe(1); 1112switches[CommandLineSwitches.ParameterizedSwitch.Target][0].ShouldBe("Clean;Build"); 1136string[] parameters = switchesLeft[CommandLineSwitches.ParameterizedSwitch.Project]; 1436commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.ProfileEvaluation][0].ShouldBe("no-file");
XMake_Tests.cs (5)
59string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.Property]; 76string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.Property]; 91string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.MaxCPUCount]; 108string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.MaxCPUCount]; 128string[] parameters = switches[CommandLineSwitches.ParameterizedSwitch.MaxCPUCount];
MSBuild (44)
CommandLineSwitches.cs (1)
744result = this[parameterizedSwitch];
XMake.cs (43)
325string projectFile = ProcessProjectSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Project], commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.IgnoreProjectExtensions], Directory.GetFiles); 330!ProcessNodeReuseSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.NodeReuse]) || 357ProcessBooleanSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Interactive], true, "InvalidInteractiveValue")) 363foreach (string parameter in commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Property]) 799&& switchesNotFromAutoResponseFile[CommandLineSwitches.ParameterizedSwitch.MaxCPUCount].Length == 0 800&& switchesFromAutoResponseFile[CommandLineSwitches.ParameterizedSwitch.MaxCPUCount].Length == 0 2554lowPriority = ProcessBooleanSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.LowPriority], defaultValue: true, resourceName: "InvalidLowPriorityValue"); 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; 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]); 2695preprocessWriter = ProcessPreprocessSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Preprocess]); 2702targetsWriter = ProcessTargetsSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Targets]); 2713enableRestore = ProcessBooleanSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Restore], defaultValue: true, resourceName: "InvalidRestoreValue"); 2718interactive = ProcessBooleanSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Interactive], defaultValue: true, resourceName: "InvalidInteractiveValue"); 2723isolateProjects = ProcessIsolateProjectsSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.IsolateProjects]); 2728graphBuild = ProcessGraphBuildSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.GraphBuild]); 2743commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Logger], 2744commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.DistributedLogger], 2745commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Verbosity], 2750commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.FileLoggerParameters], // used by DistributedFileLogger 2751commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.ConsoleLoggerParameters], 2752commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.BinaryLogger], 2753commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.ProfileEvaluation], 2771detailedSummary = ProcessBooleanSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.DetailedSummary], defaultValue: true, resourceName: "InvalidDetailedSummaryValue"); 2908string[] switches = commandLineSwitches1[CommandLineSwitches.ParameterizedSwitch.TerminalLogger]; 2976string[] terminalLoggerParameters = switches[CommandLineSwitches.ParameterizedSwitch.TerminalLoggerParameters]; 3057var projectDirectory = GetProjectDirectory(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.Project]); 3156? commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.OutputResultsCache].FirstOrDefault(p => p != null) ?? string.Empty 3163? commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.InputResultsCaches].Where(p => p != null).ToArray() 3260string[] parameters = commandLineSwitches[warningSwitch]; 3378string[] input = commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.NodeMode]; 3409bool nodeReuse = ProcessNodeReuseSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.NodeReuse]);