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