11 references to ThrowArgument
Microsoft.Build (11)
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);
FrameworkLocationHelper.cs (1)
1557ErrorUtilities.ThrowArgument("FrameworkLocationHelper.UnsupportedFrameworkVersionForWindowsSdk", this.Version);
XmlUtilities.cs (1)
78ErrorUtilities.ThrowArgument("OM_NameInvalid", name, name[firstInvalidCharLocation]);