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)
899CommandLineSwitchException.Throw("SwitchErrorWithArguments", _badCommandLineArg, ResourceUtilities.GetResourceString(_errorMessage), _commandLine, StringBuilderCache.GetStringAndRelease(sb));
XMake.cs (24)
966CommandLineSwitchException.Throw("SolutionBuildInvalidForCommandLineEvaluation", 1089catch (CommandLineSwitchException e) 2734CommandLineSwitchException.Throw("InvalidTerminalLoggerValue", terminalLoggerArg); 2825CommandLineSwitchException.Throw("InvalidIsolateProjectsValue", parameter); 2856CommandLineSwitchException.Throw("InvalidGraphBuildValue", parameter); 2931CommandLineSwitchException.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message); 2935CommandLineSwitchException.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message); 2958CommandLineSwitchException.Throw("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message); 2977CommandLineSwitchException.Throw("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message); 3040CommandLineSwitchException.Throw(resourceName, parameters[parameters.Length - 1], ex.Message); 3044CommandLineSwitchException.Throw(resourceName, parameters[parameters.Length - 1], ex.Message); 3083CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3088CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3093CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3112CommandLineSwitchException.Throw("InvalidNodeNumberValue", value); 3202CommandLineSwitchException.Throw("InvalidNodeNumberValue", nodeMode.ToString()); 3237CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message); 3241CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message); 3244CommandLineSwitchException.VerifyThrow(cpuCount > 0 && cpuCount <= 1024, "InvalidMaxCPUCountValueOutsideRange", parameters[parameters.Length - 1]); 3425CommandLineSwitchException.Throw("NameInvalid", nameof(XMakeElements.target), parameter, parameter[indexOfSpecialCharacter].ToString()); 3473CommandLineSwitchException.VerifyThrow((parameterSections[0].Length > 0) && (parameterSections.Length == 2), 3979CommandLineSwitchException.Throw("InvalidVerbosityError", value); 4065CommandLineSwitchException.VerifyThrow(loggerSpec[0].Length > 0, 4102CommandLineSwitchException.VerifyThrow(loggerAssemblySpec.Length > 0,