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