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)
900
CommandLineSwitchException
.Throw("SwitchErrorWithArguments", _badCommandLineArg, ResourceUtilities.GetResourceString(_errorMessage), _commandLine, StringBuilderCache.GetStringAndRelease(sb));
XMake.cs (24)
1040
CommandLineSwitchException
.Throw("SolutionBuildInvalidForCommandLineEvaluation",
1192
catch (
CommandLineSwitchException
e)
2981
CommandLineSwitchException
.Throw("InvalidTerminalLoggerValue", terminalLoggerArg);
3072
CommandLineSwitchException
.Throw("InvalidIsolateProjectsValue", parameter);
3103
CommandLineSwitchException
.Throw("InvalidGraphBuildValue", parameter);
3190
CommandLineSwitchException
.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3194
CommandLineSwitchException
.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3217
CommandLineSwitchException
.Throw("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message);
3236
CommandLineSwitchException
.Throw("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message);
3299
CommandLineSwitchException
.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3303
CommandLineSwitchException
.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3342
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3347
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3352
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3371
CommandLineSwitchException
.Throw("InvalidNodeNumberValue", value);
3466
CommandLineSwitchException
.Throw("InvalidNodeNumberValue", nodeMode.ToString());
3501
CommandLineSwitchException
.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3505
CommandLineSwitchException
.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3508
CommandLineSwitchException
.VerifyThrow(cpuCount > 0 && cpuCount <= 1024, "InvalidMaxCPUCountValueOutsideRange", parameters[parameters.Length - 1]);
3735
CommandLineSwitchException
.Throw("NameInvalid", nameof(XMakeElements.target), parameter, parameter[indexOfSpecialCharacter].ToString());
3783
CommandLineSwitchException
.VerifyThrow((parameterSections[0].Length > 0) && (parameterSections.Length == 2),
4289
CommandLineSwitchException
.Throw("InvalidVerbosityError", value);
4375
CommandLineSwitchException
.VerifyThrow(loggerSpec[0].Length > 0,
4412
CommandLineSwitchException
.VerifyThrow(loggerAssemblySpec.Length > 0,