Construction\Solution\SolutionProjectGenerator.cs (14)
336if ((elementType != XMakeElements.message) && (code != null))
341if ((elementType != XMakeElements.message) && (helpKeyword != null))
595if ((elementType != XMakeElements.message) && (code != null))
600if ((elementType != XMakeElements.message) && (helpKeyword != null))
1875XMakeElements.warning,
1886XMakeElements.warning,
1898XMakeElements.message,
1910XMakeElements.warning,
1939XMakeElements.message,
1951XMakeElements.warning,
2354XMakeElements.error,
2362XMakeElements.warning,
2370XMakeElements.message,
2386XMakeElements.error,
Evaluation\Evaluator.cs (4)
2002ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValue", String.Empty, XMakeAttributes.project, XMakeElements.import);
2032ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValueWithException", EscapingUtilities.UnescapeAll(importExpressionEscapedItem), XMakeAttributes.project, XMakeElements.import, ex.Message);
2077ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValueWithException", importFileUnescaped, XMakeAttributes.project, XMakeElements.import, ex.Message);
2494ProjectErrorUtilities.ThrowInvalidProject(importElement.Location, "InvalidAttributeValueWithException", importExpandedWithDefaultPath, XMakeAttributes.project, XMakeElements.import, ex.Message);
Evaluation\Preprocessor.cs (7)
238String.Equals(XMakeElements.project, child.Name, StringComparison.Ordinal))
275if (child.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.import, child.Name, StringComparison.Ordinal))
285string projectSdk = source.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.project, source.Name, StringComparison.Ordinal) ? ((XmlElement)source).GetAttribute(XMakeAttributes.sdk) : String.Empty;
309$"\r\n This import was added implicitly because the {XMakeElements.project} element's {XMakeAttributes.sdk} attribute specified \"{importSdk}\".";
333if (child.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.importGroup, child.Name, StringComparison.Ordinal))
342destination.AppendChild(destinationDocument.CreateComment("</" + XMakeElements.importGroup + ">"));
350if (clone.NodeType == XmlNodeType.Element && String.Equals(XMakeElements.project, child.Name, StringComparison.Ordinal) && clone.Attributes?[XMakeAttributes.sdk] != null)
Evaluation\ProjectParser.cs (42)
134ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create(_document.FullPath), "NoRootProjectElement", XMakeElements.project);
136ProjectErrorUtilities.VerifyThrowInvalidProject(element.Name != XMakeElements.visualStudioProject, element.Location, "ProjectUpgradeNeeded", _project.FullPath);
137ProjectErrorUtilities.VerifyThrowInvalidProject(element.LocalName == XMakeElements.project, element.Location, "UnrecognizedElement", element.Name);
159case XMakeElements.propertyGroup:
163case XMakeElements.itemGroup:
167case XMakeElements.importGroup:
171case XMakeElements.import:
175case XMakeElements.usingTask:
179case XMakeElements.target:
183case XMakeElements.itemDefinitionGroup:
187case XMakeElements.choose:
191case XMakeElements.projectExtensions:
195case XMakeElements.sdk:
200case XMakeElements.error:
201case XMakeElements.warning:
202case XMakeElements.message:
226ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(childElement.Name) && !ReservedPropertyNames.IsReservedProperty(childElement.Name), childElement.Location, "CannotModifyReservedProperty", childElement.Name);
310ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(itemType), element.Location, "CannotModifyReservedItem", itemType);
379if (FileUtilities.ItemSpecModifiers.IsItemSpecModifier(name) || XMakeElements.ReservedItemNames.Contains(name))
401ProjectErrorUtilities.VerifyThrowInvalidProject(!XMakeElements.ReservedItemNames.Contains(element.Name), element.Location, "CannotModifyReservedItemMetadata", element.Name);
430childElement.Name == XMakeElements.import,
520XMakeElements.usingTask,
538case XMakeElements.usingTaskParameterGroup:
547case XMakeElements.usingTaskBody:
580int indexOfSpecialCharacter = targetName.IndexOfAny(XMakeElements.InvalidTargetNameCharacters);
595case XMakeElements.propertyGroup:
598ProjectErrorUtilities.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
604case XMakeElements.itemGroup:
607ProjectErrorUtilities.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
613case XMakeElements.onError:
623case XMakeElements.itemDefinitionGroup:
630ProjectErrorUtilities.ThrowInvalidProject(onError.Location, "NodeMustBeLastUnderElement", XMakeElements.onError, XMakeElements.target, childElement.Name);
668ProjectErrorUtilities.VerifyThrowInvalidProject(childElement.Name == XMakeElements.output, childElement.Location, "UnrecognizedChildElement", childElement.Name, task.Name);
787case XMakeElements.when:
793case XMakeElements.otherwise:
851case XMakeElements.propertyGroup:
855case XMakeElements.itemGroup:
859case XMakeElements.choose:
863case XMakeElements.itemDefinitionGroup:
Utilities\EngineFileUtilities.cs (12)
377XMakeElements.itemGroup,
390XMakeElements.itemGroup,
406XMakeElements.itemGroup,
419XMakeElements.import,
428XMakeElements.itemGroup,
437XMakeElements.itemGroup,
455XMakeElements.itemGroup,
470XMakeElements.itemGroup,
482XMakeElements.itemGroup,
495XMakeElements.import,
505XMakeElements.itemGroup,
515XMakeElements.itemGroup,