10 references to ThrowArgument
Microsoft.Build (10)
Construction\ProjectTargetElement.cs (1)
112
ErrorUtilities.
ThrowArgument
("OM_NameInvalid", unescapedValue, unescapedValue[indexOfSpecialCharacter]);
ConversionUtilities.cs (1)
38
Error.
ThrowArgument
("Shared.CannotConvertStringToBool", parameterValue);
ErrorUtilities.cs (1)
545
ThrowArgument
("Shared.ParameterCannotHaveInvalidPathChars", parameterName, parameter);
Evaluation\Expander.cs (1)
3726
ErrorUtilities.
ThrowArgument
("CouldNotDifferentiateBetweenCompatibleMethods", _methodMethodName, args.Length);
Evaluation\IntrinsicFunctions.cs (3)
477
ErrorUtilities.
ThrowArgument
("InvalidTaskHostFactoryParameter", runtime, "Runtime", XMakeAttributes.MSBuildRuntimeValues.clr2, XMakeAttributes.MSBuildRuntimeValues.clr4, XMakeAttributes.MSBuildRuntimeValues.currentRuntime, XMakeAttributes.MSBuildRuntimeValues.any);
482
ErrorUtilities.
ThrowArgument
("InvalidTaskHostFactoryParameter", architecture, "Architecture", XMakeAttributes.MSBuildArchitectureValues.x86, XMakeAttributes.MSBuildArchitectureValues.x64, XMakeAttributes.MSBuildArchitectureValues.currentArchitecture, XMakeAttributes.MSBuildArchitectureValues.any);
777
ErrorUtilities.
ThrowArgument
(keyName);
FileUtilities.cs (2)
191
ErrorUtilities.
ThrowArgument
("DebugPathTooLong", directory);
1484
ErrorUtilities.
ThrowArgument
("InvalidGetPathOfFileAboveParameter", file);
XmlUtilities.cs (1)
78
ErrorUtilities.
ThrowArgument
("OM_NameInvalid", name, name[firstInvalidCharLocation]);