22 writes to Include
Microsoft.Build (3)
Construction\ProjectRootElement.cs (1)
1275item.Include = include;
Definition\ProjectItem.cs (1)
717_xml.Include = name;
Instance\ProjectItemInstance.cs (1)
680item.Include = EvaluatedInclude;
Microsoft.Build.Engine.OM.UnitTests (19)
Construction\ConstructionEditing_Tests.cs (7)
740itemInclude.Include = "i"; 1146firstIncludeItem.Include = "a"; 1147secondIncludeItem.Include = "a"; 2582element.Include = "i2"; 2832element.Include = "i2"; 2929element.Include = "i2"; 3091element.Include = "i2";
Construction\ProjectItemElement_Tests.cs (8)
653item.Include = "ib"; 668item.Include = String.Empty; 683item.Include = null; 822item.Include = "i1"; 916item.Include = "i1"; 977item.Xml.Include = "i2"; 1008item.Include = null; 1028item.Include = null;
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (4)
648item.VerifySetter("newInclude", (i) => i.Include, (i, v) => i.Include = v); 655item.View.Include = null; 657Assert.ThrowsAny<InvalidOperationException>(() => item.View.Include = "xx"); // Include/Update/Remove are exclusive 661Assert.ThrowsAny<InvalidOperationException>(() => item.View.Include = "xx"); // Include/Update/Remove are exclusive
41 references to Include
Microsoft.Build (19)
Construction\ProjectItemElement.cs (5)
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); 344_includeHasWildcards = (Include != null) && FileMatcher.HasWildcards(_include); 475ErrorUtilities.VerifyThrowInvalidOperation(parent.Parent is ProjectTargetElement || (Include.Length > 0 || Update.Length > 0 || Remove.Length > 0), "OM_ItemsOutsideTargetMustHaveIncludeOrUpdateOrRemove"); 500return owner.CreateItemElement(ItemType, Include);
Construction\ProjectItemGroupElement.cs (1)
115if (String.Compare(include, item.Include, StringComparison.OrdinalIgnoreCase) < 0)
Definition\Project.cs (10)
1701var hasCharactersThatRequireSplitting = FileMatcher.HasWildcardsSemicolonItemOrPropertyReferences(itemElement.Include); 2597if (!string.IsNullOrEmpty(itemElement.Include)) 2619var includeItemspec = new EvaluationItemSpec(itemElement.Include, _data.Expander, itemElement.IncludeLocation, itemElement.ContainingProject.DirectoryPath); 2806ProvenanceResult result = SingleItemSpecProvenance(itemElement.Include, itemElement.IncludeLocation, Operation.Include); 3422var hasCharactersThatRequireSplitting = FileMatcher.HasWildcardsSemicolonItemOrPropertyReferences(itemElement.Include); 3449string evaluatedExistingInclude = _data.Expander.ExpandIntoStringLeaveEscaped(candidateExistingItemXml.Include, ExpanderOptions.ExpandProperties, candidateExistingItemXml.IncludeLocation); 3523return renamedItemElement.Include; 3532renamedItemElement.Include, 3540return renamedItemElement.Include; 3892if (itemToAddBefore == null && String.Compare(unevaluatedInclude, existingItemXml.Include, StringComparison.OrdinalIgnoreCase) < 0)
Definition\ProjectItem.cs (1)
191return _xml.Include;
Evaluation\Evaluator.cs (1)
516itemElement.Include,
Evaluation\LazyItemEvaluator.cs (1)
552ProcessItemSpec(rootDirectory, itemElement.Include, itemElement.IncludeLocation, operationBuilder);
Microsoft.Build.Engine.OM.UnitTests (22)
Construction\ProjectItemElement_Tests.cs (6)
364Assert.Equal("i", items[0].Include); 373Assert.Equal("i", items[1].Include); 639Assert.Equal("i1", item.Include); 655Assert.Equal("ib", item.Include); 670Assert.Equal(String.Empty, item.Include); 685Assert.Equal(String.Empty, item.Include);
Construction\ProjectItemGroupElement_tests.cs (2)
71Assert.Equal("i1", items[0].Include); 72Assert.Equal("i2", items[1].Include);
Construction\ProjectRootElement_Tests.cs (2)
893Assert.Equal("k1", items[2].Include); 894Assert.Equal("k4", items[5].Include);
Definition\Project_Tests.cs (1)
1770project.Xml.RawXml.ShouldNotContain(itemToRemove.Xml.Include);
Definition\ProjectItem_Tests.cs (1)
1972Assert.Equal("i2", item.Xml.Include);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
894Assert.Equal(realXml.Include, viewXml.Include);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (8)
83xmlPair.Add2NewChildrenWithVerify<ProjectItemElement>(newItem, (p, i) => p.AddItem("cpp", i), (pi, i) => pi.Include == i, out var item1, out var item2); 84xmlPair.Add2NewChildrenWithVerify<ProjectItemElement>(newItemWithMetadata, (p, i) => p.AddItem("cpp", i, itemMetadata), (pi, i) => pi.Include == i, out var itemWithMetadata1, out var itemWithMetadata2); 351var item1 = xmlPair.AddNewChaildWithVerify<ProjectItemElement>(ObjectType.View, "newItem", (p, i) => p.AddItem("cpp", i), (pi, i) => pi.Include == i); 644var itemInTargt = itemGrp.AddNewChaildWithVerify<ProjectItemElement>(ObjectType.View, "targetfile.cs", (p, s) => p.AddItem("cs", s), (pe, s) => pe.Include == s); 646var item = xmlPair.AddNewChaildWithVerify<ProjectItemElement>(ObjectType.View, "file.cpp", (p, s) => p.AddItem("cpp", s), (pe, s) => pe.Include == s); 648item.VerifySetter("newInclude", (i) => i.Include, (i, v) => i.Include = v); 697itemGrp.Add2NewChildrenWithVerify<ProjectItemElement>("file.cpp", (ig, inc) => ig.AddItem("cpp", inc), (i, inc) => i.Include == inc, out var item1, out var item2); 705itemGrp.Add2NewChildrenWithVerify<ProjectItemElement>("file.cs", (ig, inc) => ig.AddItem("cs", inc, itemMetadata), (i, inc) => i.Include == inc, out var itemWithMetadata1, out var itemWithMetadata2);