1 instantiation of CommandLineSwitchException
MSBuild (1)
CommandLine\CommandLineSwitchException.cs (1)
154throw new CommandLineSwitchException(errorMessage, commandLineArg);
26 references to CommandLineSwitchException
MSBuild (26)
CommandLine\CommandLineParser.cs (1)
60/// <exception cref="CommandLineSwitchException">
CommandLine\CommandLineSwitches.cs (1)
900CommandLineSwitchException.Throw("SwitchErrorWithArguments", _badCommandLineArg, ResourceUtilities.GetResourceString(_errorMessage), _commandLine, StringBuilderCache.GetStringAndRelease(sb));
XMake.cs (24)
1040CommandLineSwitchException.Throw("SolutionBuildInvalidForCommandLineEvaluation", 1192catch (CommandLineSwitchException e) 2981CommandLineSwitchException.Throw("InvalidTerminalLoggerValue", terminalLoggerArg); 3072CommandLineSwitchException.Throw("InvalidIsolateProjectsValue", parameter); 3103CommandLineSwitchException.Throw("InvalidGraphBuildValue", parameter); 3190CommandLineSwitchException.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message); 3194CommandLineSwitchException.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message); 3217CommandLineSwitchException.Throw("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message); 3236CommandLineSwitchException.Throw("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message); 3299CommandLineSwitchException.Throw(resourceName, parameters[parameters.Length - 1], ex.Message); 3303CommandLineSwitchException.Throw(resourceName, parameters[parameters.Length - 1], ex.Message); 3342CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3347CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3352CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3371CommandLineSwitchException.Throw("InvalidNodeNumberValue", value); 3466CommandLineSwitchException.Throw("InvalidNodeNumberValue", nodeMode.ToString()); 3501CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message); 3505CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message); 3508CommandLineSwitchException.VerifyThrow(cpuCount > 0 && cpuCount <= 1024, "InvalidMaxCPUCountValueOutsideRange", parameters[parameters.Length - 1]); 3735CommandLineSwitchException.Throw("NameInvalid", nameof(XMakeElements.target), parameter, parameter[indexOfSpecialCharacter].ToString()); 3783CommandLineSwitchException.VerifyThrow((parameterSections[0].Length > 0) && (parameterSections.Length == 2), 4289CommandLineSwitchException.Throw("InvalidVerbosityError", value); 4375CommandLineSwitchException.VerifyThrow(loggerSpec[0].Length > 0, 4412CommandLineSwitchException.VerifyThrow(loggerAssemblySpec.Length > 0,