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)
966
CommandLineSwitchException
.Throw("SolutionBuildInvalidForCommandLineEvaluation",
1089
catch (
CommandLineSwitchException
e)
2734
CommandLineSwitchException
.Throw("InvalidTerminalLoggerValue", terminalLoggerArg);
2825
CommandLineSwitchException
.Throw("InvalidIsolateProjectsValue", parameter);
2856
CommandLineSwitchException
.Throw("InvalidGraphBuildValue", parameter);
2931
CommandLineSwitchException
.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
2935
CommandLineSwitchException
.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message);
2958
CommandLineSwitchException
.Throw("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message);
2977
CommandLineSwitchException
.Throw("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message);
3040
CommandLineSwitchException
.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3044
CommandLineSwitchException
.Throw(resourceName, parameters[parameters.Length - 1], ex.Message);
3083
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3088
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3093
CommandLineSwitchException
.Throw("InvalidProfilerValue", parameters[parameters.Length - 1],
3112
CommandLineSwitchException
.Throw("InvalidNodeNumberValue", value);
3202
CommandLineSwitchException
.Throw("InvalidNodeNumberValue", nodeMode.ToString());
3237
CommandLineSwitchException
.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3241
CommandLineSwitchException
.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message);
3244
CommandLineSwitchException
.VerifyThrow(cpuCount > 0 && cpuCount <= 1024, "InvalidMaxCPUCountValueOutsideRange", parameters[parameters.Length - 1]);
3425
CommandLineSwitchException
.Throw("NameInvalid", nameof(XMakeElements.target), parameter, parameter[indexOfSpecialCharacter].ToString());
3473
CommandLineSwitchException
.VerifyThrow((parameterSections[0].Length > 0) && (parameterSections.Length == 2),
3979
CommandLineSwitchException
.Throw("InvalidVerbosityError", value);
4065
CommandLineSwitchException
.VerifyThrow(loggerSpec[0].Length > 0,
4102
CommandLineSwitchException
.VerifyThrow(loggerAssemblySpec.Length > 0,