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)
899
CommandLineSwitchException
.Throw("SwitchErrorWithArguments", _badCommandLineArg, ResourceUtilities.GetResourceString(_errorMessage), _commandLine, StringBuilderCache.GetStringAndRelease(sb));
XMake.cs (24)
1031
CommandLineSwitchException
.Throw("SolutionBuildInvalidForCommandLineEvaluation",
1183
catch (
CommandLineSwitchException
e)
2941
CommandLineSwitchException
.Throw("InvalidTerminalLoggerValue", terminalLoggerArg);
3032
CommandLineSwitchException
.Throw("InvalidIsolateProjectsValue", parameter);
3063
CommandLineSwitchException
.Throw("InvalidGraphBuildValue", parameter);
3138
CommandLineSwitchException
.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3142
CommandLineSwitchException
.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3165
CommandLineSwitchException
.Throw("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message);
3184
CommandLineSwitchException
.Throw("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message);
3247
CommandLineSwitchException
.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3251
CommandLineSwitchException
.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3290
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3295
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3300
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3319
CommandLineSwitchException
.Throw("InvalidNodeNumberValue", value);
3414
CommandLineSwitchException
.Throw("InvalidNodeNumberValue", nodeMode.ToString());
3449
CommandLineSwitchException
.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3453
CommandLineSwitchException
.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3456
CommandLineSwitchException
.VerifyThrow(cpuCount > 0 && cpuCount <= 1024, "InvalidMaxCPUCountValueOutsideRange", parameters[parameters.Length - 1]);
3637
CommandLineSwitchException
.Throw("NameInvalid", nameof(XMakeElements.target), parameter, parameter[indexOfSpecialCharacter].ToString());
3685
CommandLineSwitchException
.VerifyThrow((parameterSections[0].Length > 0) && (parameterSections.Length == 2),
4191
CommandLineSwitchException
.Throw("InvalidVerbosityError", value);
4277
CommandLineSwitchException
.VerifyThrow(loggerSpec[0].Length > 0,
4314
CommandLineSwitchException
.VerifyThrow(loggerAssemblySpec.Length > 0,