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)
897CommandLineSwitchException.Throw("SwitchErrorWithArguments", _badCommandLineArg, ResourceUtilities.GetResourceString(_errorMessage), _commandLine, StringBuilderCache.GetStringAndRelease(sb));
XMake.cs (24)
1040CommandLineSwitchException.Throw("SolutionBuildInvalidForCommandLineEvaluation", 1192catch (CommandLineSwitchException e) 2973CommandLineSwitchException.Throw("InvalidTerminalLoggerValue", terminalLoggerArg); 3064CommandLineSwitchException.Throw("InvalidIsolateProjectsValue", parameter); 3095CommandLineSwitchException.Throw("InvalidGraphBuildValue", parameter); 3170CommandLineSwitchException.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message); 3174CommandLineSwitchException.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message); 3197CommandLineSwitchException.Throw("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message); 3216CommandLineSwitchException.Throw("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message); 3279CommandLineSwitchException.Throw(resourceName, parameters[parameters.Length - 1], ex.Message); 3283CommandLineSwitchException.Throw(resourceName, parameters[parameters.Length - 1], ex.Message); 3322CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3327CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3332CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3351CommandLineSwitchException.Throw("InvalidNodeNumberValue", value); 3446CommandLineSwitchException.Throw("InvalidNodeNumberValue", nodeMode.ToString()); 3481CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message); 3485CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message); 3488CommandLineSwitchException.VerifyThrow(cpuCount > 0 && cpuCount <= 1024, "InvalidMaxCPUCountValueOutsideRange", parameters[parameters.Length - 1]); 3715CommandLineSwitchException.Throw("NameInvalid", nameof(XMakeElements.target), parameter, parameter[indexOfSpecialCharacter].ToString()); 3763CommandLineSwitchException.VerifyThrow((parameterSections[0].Length > 0) && (parameterSections.Length == 2), 4269CommandLineSwitchException.Throw("InvalidVerbosityError", value); 4355CommandLineSwitchException.VerifyThrow(loggerSpec[0].Length > 0, 4392CommandLineSwitchException.VerifyThrow(loggerAssemblySpec.Length > 0,