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