3 writes to Include
Microsoft.Build (3)
Construction\ProjectRootElement.cs (1)
1299
item.
Include
= include;
Definition\ProjectItem.cs (1)
712
_xml.
Include
= name;
Instance\ProjectItemInstance.cs (1)
709
item.
Include
= EvaluatedInclude;
23 references to Include
dotnet (3)
CliCompletion.cs (1)
48
return GetMSBuildProject()?.GetProjectToProjectReferences().Select(r => ToCompletionItem(r.
Include
)) ?? Empty<CompletionItem>();
Commands\Package\VirtualProjectPackageReflector.cs (2)
31
Debug.Assert(!string.IsNullOrEmpty(item.
Include
), "Expected only PackageReference Include items in virtual project.");
34
packageReferences[item.
Include
] = version;
Microsoft.Build (19)
Construction\ProjectItemElement.cs (5)
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);
349
_includeHasWildcards = (
Include
!= null) && FileMatcher.HasWildcards(_include);
480
ErrorUtilities.VerifyThrowInvalidOperation(parent.Parent is ProjectTargetElement || (
Include
.Length > 0 || Update.Length > 0 || Remove.Length > 0), "OM_ItemsOutsideTargetMustHaveIncludeOrUpdateOrRemove");
505
return owner.CreateItemElement(ItemType,
Include
);
Construction\ProjectItemGroupElement.cs (1)
115
if (String.Compare(include, item.
Include
, StringComparison.OrdinalIgnoreCase) < 0)
Definition\Project.cs (10)
1707
var hasCharactersThatRequireSplitting = FileMatcher.HasWildcardsSemicolonItemOrPropertyReferences(itemElement.
Include
);
2592
if (!string.IsNullOrEmpty(itemElement.
Include
))
2614
var includeItemspec = new EvaluationItemSpec(itemElement.
Include
, _data.Expander, itemElement.IncludeLocation, itemElement.ContainingProject.DirectoryPath);
2815
ProvenanceResult result = SingleItemSpecProvenance(itemElement.
Include
, itemElement.IncludeLocation, Operation.Include);
3431
var hasCharactersThatRequireSplitting = FileMatcher.HasWildcardsSemicolonItemOrPropertyReferences(itemElement.
Include
);
3458
string evaluatedExistingInclude = _data.Expander.ExpandIntoStringLeaveEscaped(candidateExistingItemXml.
Include
, ExpanderOptions.ExpandProperties, candidateExistingItemXml.IncludeLocation);
3532
return renamedItemElement.
Include
;
3541
renamedItemElement.
Include
,
3549
return renamedItemElement.
Include
;
3902
if (itemToAddBefore == null && String.Compare(unevaluatedInclude, existingItemXml.
Include
, StringComparison.OrdinalIgnoreCase) < 0)
Definition\ProjectItem.cs (1)
191
return _xml.
Include
;
Evaluation\Evaluator.cs (1)
529
itemElement.
Include
,
Evaluation\LazyItemEvaluator.cs (1)
552
ProcessItemSpec(rootDirectory, itemElement.
Include
, itemElement.IncludeLocation, operationBuilder);
Microsoft.DotNet.Cli.Utils (1)
Extensions\MSBuildProjectExtensions.cs (1)
107
return SplitSemicolonDelimitedValues(item.
Include
);