1 instantiation of CommandLineSwitchException
MSBuild (1)
CommandLine\CommandLineSwitchException.cs (1)
154throw new CommandLineSwitchException(errorMessage, commandLineArg);
26 references to CommandLineSwitchException
MSBuild (26)
CommandLine\CommandLineParser.cs (1)
60/// <exception cref="CommandLineSwitchException">
CommandLine\CommandLineSwitches.cs (1)
899CommandLineSwitchException.Throw("SwitchErrorWithArguments", _badCommandLineArg, ResourceUtilities.GetResourceString(_errorMessage), _commandLine, StringBuilderCache.GetStringAndRelease(sb));
XMake.cs (24)
1031CommandLineSwitchException.Throw("SolutionBuildInvalidForCommandLineEvaluation", 1183catch (CommandLineSwitchException e) 2941CommandLineSwitchException.Throw("InvalidTerminalLoggerValue", terminalLoggerArg); 3032CommandLineSwitchException.Throw("InvalidIsolateProjectsValue", parameter); 3063CommandLineSwitchException.Throw("InvalidGraphBuildValue", parameter); 3138CommandLineSwitchException.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message); 3142CommandLineSwitchException.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message); 3165CommandLineSwitchException.Throw("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message); 3184CommandLineSwitchException.Throw("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message); 3247CommandLineSwitchException.Throw(resourceName, parameters[parameters.Length - 1], ex.Message); 3251CommandLineSwitchException.Throw(resourceName, parameters[parameters.Length - 1], ex.Message); 3290CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3295CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3300CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3319CommandLineSwitchException.Throw("InvalidNodeNumberValue", value); 3414CommandLineSwitchException.Throw("InvalidNodeNumberValue", nodeMode.ToString()); 3449CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message); 3453CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message); 3456CommandLineSwitchException.VerifyThrow(cpuCount > 0 && cpuCount <= 1024, "InvalidMaxCPUCountValueOutsideRange", parameters[parameters.Length - 1]); 3637CommandLineSwitchException.Throw("NameInvalid", nameof(XMakeElements.target), parameter, parameter[indexOfSpecialCharacter].ToString()); 3685CommandLineSwitchException.VerifyThrow((parameterSections[0].Length > 0) && (parameterSections.Length == 2), 4191CommandLineSwitchException.Throw("InvalidVerbosityError", value); 4277CommandLineSwitchException.VerifyThrow(loggerSpec[0].Length > 0, 4314CommandLineSwitchException.VerifyThrow(loggerAssemblySpec.Length > 0,