1 instantiation of CommandLineSwitchException
MSBuild (1)
CommandLine\CommandLineSwitchException.cs (1)
154
throw new
CommandLineSwitchException
(errorMessage, commandLineArg);
25 references to CommandLineSwitchException
MSBuild (25)
CommandLine\CommandLineSwitches.cs (1)
900
CommandLineSwitchException
.Throw("SwitchErrorWithArguments", _badCommandLineArg, ResourceUtilities.GetResourceString(_errorMessage), _commandLine, StringBuilderCache.GetStringAndRelease(sb));
XMake.cs (24)
1051
CommandLineSwitchException
.Throw("SolutionBuildInvalidForCommandLineEvaluation",
1203
catch (
CommandLineSwitchException
e)
2992
CommandLineSwitchException
.Throw("InvalidTerminalLoggerValue", terminalLoggerArg);
3083
CommandLineSwitchException
.Throw("InvalidIsolateProjectsValue", parameter);
3114
CommandLineSwitchException
.Throw("InvalidGraphBuildValue", parameter);
3201
CommandLineSwitchException
.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3205
CommandLineSwitchException
.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
3228
CommandLineSwitchException
.Throw("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message);
3247
CommandLineSwitchException
.Throw("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message);
3310
CommandLineSwitchException
.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3314
CommandLineSwitchException
.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3353
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3358
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3363
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3382
CommandLineSwitchException
.Throw("InvalidNodeNumberValue", value);
3477
CommandLineSwitchException
.Throw("InvalidNodeNumberValue", nodeMode.ToString());
3512
CommandLineSwitchException
.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3516
CommandLineSwitchException
.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3519
CommandLineSwitchException
.VerifyThrow(cpuCount > 0 && cpuCount <= 1024, "InvalidMaxCPUCountValueOutsideRange", parameters[parameters.Length - 1]);
3746
CommandLineSwitchException
.Throw("NameInvalid", nameof(XMakeElements.target), parameter, parameter[indexOfSpecialCharacter].ToString());
3794
CommandLineSwitchException
.VerifyThrow((parameterSections[0].Length > 0) && (parameterSections.Length == 2),
4300
CommandLineSwitchException
.Throw("InvalidVerbosityError", value);
4386
CommandLineSwitchException
.VerifyThrow(loggerSpec[0].Length > 0,
4423
CommandLineSwitchException
.VerifyThrow(loggerAssemblySpec.Length > 0,