19 references to include
Microsoft.Build (18)
Construction\ProjectItemElement.cs (6)
100return GetAttributeValue(XMakeAttributes.include, ref _include); 105ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || (Remove.Length == 0 && Update.Length == 0), "OM_OneOfAttributeButNotMore", ElementName, XMakeAttributes.include, XMakeAttributes.remove, XMakeAttributes.update); 106SetOrRemoveAttribute(XMakeAttributes.include, value, ref _include, "Set item Include {0}", value); 149ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || (Include.Length == 0 && Update.Length == 0), "OM_OneOfAttributeButNotMore", ElementName, XMakeAttributes.include, XMakeAttributes.remove, XMakeAttributes.update); 168ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || (Remove.Length == 0 && Include.Length == 0), "OM_OneOfAttributeButNotMore", ElementName, XMakeAttributes.include, XMakeAttributes.remove, XMakeAttributes.update); 291public ElementLocation IncludeLocation => GetAttributeLocation(XMakeAttributes.include);
Evaluation\ProjectParser.cs (6)
36private static readonly HashSet<string> KnownAttributesOnItem = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label, XMakeAttributes.include, XMakeAttributes.exclude, XMakeAttributes.remove, XMakeAttributes.keepMetadata, XMakeAttributes.removeMetadata, XMakeAttributes.keepDuplicates, XMakeAttributes.update, XMakeAttributes.matchOnMetadata, XMakeAttributes.matchOnMetadataOptions }; 264string include = element.GetAttribute(XMakeAttributes.include); 271if (element.HasAttribute(XMakeAttributes.include)) 274exclusiveItemOperation = XMakeAttributes.include; 301ProjectErrorUtilities.VerifyThrowInvalidProject(include.Length > 0 || element.Attributes[XMakeAttributes.include] == null, element.Location, "MissingRequiredAttribute", XMakeAttributes.include, itemType);
Utilities\EngineFileUtilities.cs (6)
389XMakeAttributes.include, 405XMakeAttributes.include, 427XMakeAttributes.include, 454XMakeAttributes.include, 481XMakeAttributes.include, 504XMakeAttributes.include,
Microsoft.Build.Engine.UnitTests (1)
XmakeAttributes_Tests.cs (1)
31Assert.False(XMakeAttributes.IsBadlyCasedSpecialTaskAttribute(XMakeAttributes.include));