1 instantiation of CommandLineSwitchException
MSBuild (1)
CommandLine\CommandLineSwitchException.cs (1)
154
throw new
CommandLineSwitchException
(errorMessage, commandLineArg);
26 references to CommandLineSwitchException
MSBuild (26)
CommandLine\CommandLineParser.cs (1)
60
/// <exception cref="
CommandLineSwitchException
">
CommandLine\CommandLineSwitches.cs (1)
897
CommandLineSwitchException
.Throw("SwitchErrorWithArguments", _badCommandLineArg, ResourceUtilities.GetResourceString(_errorMessage), _commandLine, StringBuilderCache.GetStringAndRelease(sb));
XMake.cs (24)
1040
CommandLineSwitchException
.Throw("SolutionBuildInvalidForCommandLineEvaluation",
1192
catch (
CommandLineSwitchException
e)
2973
CommandLineSwitchException
.Throw("InvalidTerminalLoggerValue", terminalLoggerArg);
3064
CommandLineSwitchException
.Throw("InvalidIsolateProjectsValue", parameter);
3095
CommandLineSwitchException
.Throw("InvalidGraphBuildValue", parameter);
3170
CommandLineSwitchException
.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3174
CommandLineSwitchException
.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3197
CommandLineSwitchException
.Throw("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message);
3216
CommandLineSwitchException
.Throw("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message);
3279
CommandLineSwitchException
.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3283
CommandLineSwitchException
.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3322
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3327
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3332
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3351
CommandLineSwitchException
.Throw("InvalidNodeNumberValue", value);
3446
CommandLineSwitchException
.Throw("InvalidNodeNumberValue", nodeMode.ToString());
3481
CommandLineSwitchException
.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3485
CommandLineSwitchException
.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3488
CommandLineSwitchException
.VerifyThrow(cpuCount > 0 && cpuCount <= 1024, "InvalidMaxCPUCountValueOutsideRange", parameters[parameters.Length - 1]);
3715
CommandLineSwitchException
.Throw("NameInvalid", nameof(XMakeElements.target), parameter, parameter[indexOfSpecialCharacter].ToString());
3763
CommandLineSwitchException
.VerifyThrow((parameterSections[0].Length > 0) && (parameterSections.Length == 2),
4269
CommandLineSwitchException
.Throw("InvalidVerbosityError", value);
4355
CommandLineSwitchException
.VerifyThrow(loggerSpec[0].Length > 0,
4392
CommandLineSwitchException
.VerifyThrow(loggerAssemblySpec.Length > 0,