51 references to VerifyThrowInvalidProject
Microsoft.Build (31)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
408
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
443
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
451
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
Construction\ProjectElementContainer.cs (1)
485
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!XmlElement.HasAttribute(child.XmlElement.Name),
Evaluation\Expander.cs (18)
1663
ProjectErrorUtilities.
VerifyThrowInvalidProject
(firstAtSignOffset == lastAtSignOffset, elementLocation, "InvalidRegistryPropertyExpression", "$(" + registryExpression + ")", String.Empty);
2338
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2386
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2433
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2457
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2533
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2600
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2672
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2691
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2700
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2783
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments == null || arguments.Length == 0, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2800
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 1, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2834
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2867
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
2900
ProjectErrorUtilities.
VerifyThrowInvalidProject
(arguments?.Length == 2, elementLocation, "InvalidItemFunctionSyntax", functionName, arguments == null ? 0 : arguments.Length);
3047
ProjectErrorUtilities.
VerifyThrowInvalidProject
(match.Groups[RegularExpressions.ItemSpecificationGroup].Length == 0, _elementLocation, "QualifiedMetadataInTransformNotAllowed", match.Value, name);
3335
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!expressionRoot.IsEmpty, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty);
5198
ProjectErrorUtilities.
VerifyThrowInvalidProject
(netPropertyName.Length > 0, elementLocation, "InvalidFunctionPropertyExpression", expressionFunction, String.Empty);
Evaluation\ProjectParser.cs (8)
295
ProjectErrorUtilities.
VerifyThrowInvalidProject
(exclusiveAttributeCount == 1 || belowTarget, element.Location, "IncludeRemoveOrUpdate", exclusiveItemOperation, itemType);
301
ProjectErrorUtilities.
VerifyThrowInvalidProject
(include.Length > 0 || element.Attributes[XMakeAttributes.include] == null, element.Location, "MissingRequiredAttribute", XMakeAttributes.include, itemType);
304
ProjectErrorUtilities.
VerifyThrowInvalidProject
(remove.Length > 0 || element.Attributes[XMakeAttributes.remove] == null, element.Location, "MissingRequiredAttribute", XMakeAttributes.remove, itemType);
307
ProjectErrorUtilities.
VerifyThrowInvalidProject
(update.Length > 0 || element.Attributes[XMakeAttributes.update] == null, element.Location, "MissingRequiredAttribute", XMakeAttributes.update, itemType);
409
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!containsItemVector, element.Location, "MetadataDefinitionCannotContainItemVectorExpression", metadatum.Value, metadatum.Name);
429
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
449
ProjectErrorUtilities.
VerifyThrowInvalidProject
(
671
ProjectErrorUtilities.
VerifyThrowInvalidProject
(childElement.Name == XMakeElements.output, childElement.Location, "UnrecognizedChildElement", childElement.Name, task.Name);
Xml\ProjectXmlUtilities.cs (1)
177
ProjectErrorUtilities.
VerifyThrowInvalidProject
(element.GetAttribute(attributeName).Length > 0, element.Location, "MissingRequiredAttribute", attributeName, element.Name);
Microsoft.Build.Conversion.Core (20)
ProjectFileConverter.cs (20)
1497
ProjectErrorUtilities.
VerifyThrowInvalidProject
(false, visualStudioProjectChildElement.Location,
1529
ProjectErrorUtilities.
VerifyThrowInvalidProject
((this.projectGuid != null) || (this.isUserFile),
1679
ProjectErrorUtilities.
VerifyThrowInvalidProject
(false, languageChildElement.Location,
1878
ProjectErrorUtilities.
VerifyThrowInvalidProject
(false, buildChildElement.Location,
2002
ProjectErrorUtilities.
VerifyThrowInvalidProject
(false, settingsChildElement.Location,
2084
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!string.IsNullOrEmpty(configName),
2243
ProjectErrorUtilities.
VerifyThrowInvalidProject
(false, configChildElement.Location,
2293
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!string.IsNullOrEmpty(platformForVSD),
2477
ProjectErrorUtilities.
VerifyThrowInvalidProject
(false, referencesChildElement.Location,
2529
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!string.IsNullOrEmpty(referenceName),
2989
ProjectErrorUtilities.
VerifyThrowInvalidProject
(false, importsChildElement.Location,
3023
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!string.IsNullOrEmpty(importNamespace),
3047
ProjectErrorUtilities.
VerifyThrowInvalidProject
(false, importAttribute.Location, "UnrecognizedAttribute",
3108
ProjectErrorUtilities.
VerifyThrowInvalidProject
(false, filesChildElement.Location,
3176
ProjectErrorUtilities.
VerifyThrowInvalidProject
(false, includeChildElement.Location,
3210
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!string.IsNullOrEmpty(relPath),
3399
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!string.IsNullOrEmpty(relPath),
3577
ProjectErrorUtilities.
VerifyThrowInvalidProject
(false, startupServicesChildElement.Location,
3611
ProjectErrorUtilities.
VerifyThrowInvalidProject
(!string.IsNullOrEmpty(id), serviceElement.Location,
3635
ProjectErrorUtilities.
VerifyThrowInvalidProject
(false, serviceAttribute.Location, "UnrecognizedAttribute",