16 references to Throw
MSBuild (16)
CommandLineSwitches.cs (1)
892CommandLineSwitchException.Throw("SwitchErrorWithArguments", _badCommandLineArg, ResourceUtilities.GetResourceString(_errorMessage), _commandLine, StringBuilderCache.GetStringAndRelease(sb));
CommandLineSwitchException.cs (1)
139Throw(messageResourceName, commandLineArg, String.Empty);
XMake.cs (14)
3195CommandLineSwitchException.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message); 3199CommandLineSwitchException.Throw("InvalidNodeReuseValue", parameters[parameters.Length - 1], ex.Message); 3227CommandLineSwitchException.Throw("InvalidPreprocessPath", parameters[parameters.Length - 1], ex.Message); 3246CommandLineSwitchException.Throw("TargetsCouldNotBePrinted", parameters[parameters.Length - 1], ex.Message); 3309CommandLineSwitchException.Throw(resourceName, parameters[parameters.Length - 1], ex.Message); 3313CommandLineSwitchException.Throw(resourceName, parameters[parameters.Length - 1], ex.Message); 3352CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3357CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3362CommandLineSwitchException.Throw("InvalidProfilerValue", parameters[parameters.Length - 1], 3389CommandLineSwitchException.Throw("InvalidNodeNumberValue", input[0], ex.Message); 3393CommandLineSwitchException.Throw("InvalidNodeNumberValue", input[0], ex.Message); 3489CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message); 3493CommandLineSwitchException.Throw("InvalidMaxCPUCountValue", parameters[parameters.Length - 1], ex.Message); 3717CommandLineSwitchException.Throw("NameInvalid", nameof(XMakeElements.target), parameter, parameter[indexOfSpecialCharacter].ToString());