20 references to ReservedItemNames
Microsoft.Build (20)
Construction\ProjectItemElement.cs (2)
425
ErrorUtilities.VerifyThrowArgument(!XMakeElements.
ReservedItemNames
.Contains(itemType), "CannotModifyReservedItem", itemType);
444
ErrorUtilities.VerifyThrowArgument(!XMakeElements.
ReservedItemNames
.Contains(newItemType), "CannotModifyReservedItem", newItemType);
Construction\ProjectMetadataElement.cs (2)
107
ErrorUtilities.VerifyThrowInvalidOperation(!XMakeElements.
ReservedItemNames
.Contains(name), "CannotModifyReservedItemMetadata", name);
124
ErrorUtilities.VerifyThrowArgument(!XMakeElements.
ReservedItemNames
.Contains(newName), "CannotModifyReservedItemMetadata", newName);
Construction\ProjectPropertyElement.cs (2)
97
ErrorUtilities.VerifyThrowInvalidOperation(!XMakeElements.
ReservedItemNames
.Contains(name) && !ReservedPropertyNames.IsReservedProperty(name), "OM_CannotCreateReservedProperty", name);
114
ErrorUtilities.VerifyThrowArgument(!XMakeElements.
ReservedItemNames
.Contains(newName), "CannotModifyReservedProperty", newName);
Definition\ProjectItem.cs (1)
587
ErrorUtilities.VerifyThrowInvalidOperation(!XMakeElements.
ReservedItemNames
.Contains(name), "CannotModifyReservedItemMetadata", name);
Definition\ProjectItemDefinition.cs (1)
155
ErrorUtilities.VerifyThrowInvalidOperation(!XMakeElements.
ReservedItemNames
.Contains(name), "CannotModifyReservedItemMetadata", name);
Definition\ProjectProperty.cs (1)
549
ErrorUtilities.VerifyThrowArgument(!XMakeElements.
ReservedItemNames
.Contains(name), "OM_ReservedName", name);
Evaluation\ProjectParser.cs (4)
226
ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.
ReservedItemNames
.Contains(childElement.Name) && !ReservedPropertyNames.IsReservedProperty(childElement.Name), childElement.Location, "CannotModifyReservedProperty", childElement.Name);
310
ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.
ReservedItemNames
.Contains(itemType), element.Location, "CannotModifyReservedItem", itemType);
379
if (FileUtilities.ItemSpecModifiers.IsItemSpecModifier(name) || XMakeElements.
ReservedItemNames
.Contains(name))
401
ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.
ReservedItemNames
.Contains(element.Name), element.Location, "CannotModifyReservedItemMetadata", element.Name);
Instance\ProjectInstance.cs (1)
2958
|| XMakeElements.
ReservedItemNames
.Contains(environmentVariableName)
Instance\ProjectItemInstance.cs (1)
711
ErrorUtilities.VerifyThrowArgument(!XMakeElements.
ReservedItemNames
.Contains(itemTypeToUse), "OM_ReservedName", itemTypeToUse);
Instance\ProjectMetadataInstance.cs (2)
68
ErrorUtilities.VerifyThrowArgument(!XMakeElements.
ReservedItemNames
.Contains(name), "OM_ReservedName", name);
72
ErrorUtilities.VerifyThrowArgument(!XMakeElements.
ReservedItemNames
.Contains(name) && !FileUtilities.ItemSpecModifiers.IsItemSpecModifier(name), "OM_ReservedName", name);
Instance\ProjectPropertyInstance.cs (2)
328
ErrorUtilities.VerifyThrowArgument(!XMakeElements.
ReservedItemNames
.Contains(name), "OM_ReservedName", name);
334
ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.
ReservedItemNames
.Contains(name), location, "CannotModifyReservedProperty", name);
Utilities\Utilities.cs (1)
571
!XMakeElements.
ReservedItemNames
.Contains(environmentVariableName) &&