1 type derived from ProjectItemDefinition
Microsoft.Build (1)
ObjectModelRemoting\LinkedObjectFactory.cs (1)
265
private class LinkedProjectItemDefinition :
ProjectItemDefinition
, ILinkableObject, IImmutableInstanceProvider<ProjectItemDefinitionInstance>
2 instantiations of ProjectItemDefinition
Microsoft.Build (1)
Definition\Project.cs (1)
4421
ProjectItemDefinition newItemDefinition = new
ProjectItemDefinition
(Project, itemType);
Microsoft.Build.Engine.UnitTests (1)
Instance\TaskItem_Tests.cs (1)
217
ProjectItemDefinition projectItemDefinition = new
ProjectItemDefinition
(project, "MyItem");
67 references to ProjectItemDefinition
Microsoft.Build (47)
Definition\Project.cs (15)
659
public IDictionary<string,
ProjectItemDefinition
> ItemDefinitions => implementation.ItemDefinitions;
861
public static string GetEvaluatedItemIncludeEscaped(
ProjectItemDefinition
item)
1099
public static string GetMetadataValueEscaped(
ProjectItemDefinition
item, string name)
2212
public override IDictionary<string,
ProjectItemDefinition
> ItemDefinitions => _data.ItemDefinitions;
3528
List<ProjectItem> items = Evaluator<ProjectProperty, ProjectItem, ProjectMetadata,
ProjectItemDefinition
>.CreateItemsFromInclude(
3595
List<ProjectItem> items = Evaluator<ProjectProperty, ProjectItem, ProjectMetadata,
ProjectItemDefinition
>.CreateItemsFromInclude(
3717
Evaluator<ProjectProperty, ProjectItem, ProjectMetadata,
ProjectItemDefinition
>.Evaluate(
4009
internal class Data : IItemProvider<ProjectItem>, IPropertyProvider<ProjectProperty>, IEvaluatorData<ProjectProperty, ProjectItem, ProjectMetadata,
ProjectItemDefinition
>
4047
IEnumerable<
ProjectItemDefinition
> IEvaluatorData<ProjectProperty, ProjectItem, ProjectMetadata,
ProjectItemDefinition
>.ItemDefinitionsEnumerable => ItemDefinitions.Values;
4222
internal RetrievableEntryHashSet<
ProjectItemDefinition
> ItemDefinitions { get; private set; }
4273
ItemDefinitions = new RetrievableEntryHashSet<
ProjectItemDefinition
>(MSBuildNameIgnoreCaseComparer.Default);
4421
ProjectItemDefinition
newItemDefinition = new ProjectItemDefinition(Project, itemType);
4433
ItemDefinitions.TryGetValue(itemType, out
ProjectItemDefinition
itemDefinition);
4514
string IEvaluatorData<ProjectProperty, ProjectItem, ProjectMetadata,
ProjectItemDefinition
>.ExpandString(string unexpandedValue)
Definition\ProjectItem.cs (10)
74
private readonly List<
ProjectItemDefinition
> _inheritedItemDefinitions;
128
List<
ProjectItemDefinition
> inheritedItemDefinitionsCloned)
336
ProjectItemDefinition
itemDefinition;
395
internal List<
ProjectItemDefinition
> InheritedItemDefinitions
882
foreach (
ProjectItemDefinition
inheritedItemDefinition in _inheritedItemDefinitions)
894
ProjectItemDefinition
itemDefinition;
1071
List<
ProjectItemDefinition
> inheritedItemDefinitionsClone = null;
1075
inheritedItemDefinitionsClone ??= new List<
ProjectItemDefinition
>(inheritedItemDefinitionsCount + 1);
1079
ProjectItemDefinition
sourceItemDefinition;
1082
inheritedItemDefinitionsClone ??= new List<
ProjectItemDefinition
>(inheritedItemDefinitionsCount + 1);
Instance\ProjectInstance.cs (10)
905
IDictionary<string,
ProjectItemDefinition
> linkedProjectItemDefinitions = linkedProject.ItemDefinitions;
908
out IDictionary<string,
ProjectItemDefinition
> elementsDictionary,
909
out IDictionary<(string, int, int),
ProjectItemDefinition
> constrainedElementsDictionary);
911
var hashSet = new ImmutableElementCollectionConverter<
ProjectItemDefinition
, ProjectItemDefinitionInstance>(
964
private static ProjectItemDefinitionInstance ConvertCachedItemDefinitionToInstance(
ProjectItemDefinition
projectItemDefinition)
3331
foreach (
ProjectItemDefinition
inheritedItemDefinition in item.InheritedItemDefinitions)
3383
linkedProject.ItemDefinitions.TryGetValue(item.ItemType, out
ProjectItemDefinition
itemTypeDefinition);
3386
new ImmutableItemDefinitionsListConverter<
ProjectItemDefinition
, ProjectItemDefinitionInstance>(
3432
private void CreateItemDefinitionsSnapshot(IDictionary<string,
ProjectItemDefinition
> itemDefinitions)
3436
foreach (
ProjectItemDefinition
definition in itemDefinitions.Values)
Instance\ProjectItemDefinitionInstance.cs (1)
56
internal ProjectItemDefinitionInstance(
ProjectItemDefinition
itemDefinition)
ObjectModelRemoting\DefinitionObjectsLinks\ProjectItemDefinitionLink.cs (8)
13
/// Allow for creating a local representation to external object of type <see cref="
ProjectItemDefinition
"/>
18
/// Access to remote <see cref="
ProjectItemDefinition
.Project"/>.
23
/// Access to remote <see cref="
ProjectItemDefinition
.ItemType"/>.
28
/// Facilitate remoting the <see cref="
ProjectItemDefinition
.Metadata"/> and <see cref="
ProjectItemDefinition
.MetadataCount"/>.
33
/// Facilitate remoting the <see cref="
ProjectItemDefinition
.GetMetadata"/>.
38
/// Facilitate remoting the <see cref="
ProjectItemDefinition
.GetMetadataValue"/>.
43
/// Facilitate remoting the <see cref="
ProjectItemDefinition
.SetMetadataValue"/>.
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
61
public abstract IDictionary<string,
ProjectItemDefinition
> ItemDefinitions { get; }
ObjectModelRemoting\DefinitionObjectsLinks\ProjectMetadataLink.cs (1)
19
/// Can be either <see cref="ProjectItem"/>, or <see cref="
ProjectItemDefinition
"/>
ObjectModelRemoting\LinkedObjectFactory.cs (1)
88
public
ProjectItemDefinition
Create(ProjectItemDefinitionLink link, Project project = null)
Microsoft.Build.Engine.OM.UnitTests (19)
Definition\DefinitionEditing_Tests.cs (1)
2049
ProjectItemDefinition
definition = project.ItemDefinitions["i"];
Definition\ProjectItem_Tests.cs (1)
168
ProjectItemDefinition
definition = project.ItemDefinitions["i"];
Definition\ProjectItemDefinition_Tests.cs (3)
83
ProjectItemDefinition
itemDefinition = project.ItemDefinitions["i"];
135
ProjectItemDefinition
definition = project.ItemDefinitions["i"];
165
ProjectItemDefinition
definition = project.ItemDefinitions["i"];
Definition\ProjectMetadata_Tests.cs (3)
369
ProjectItemDefinition
itemDefinition;
398
ProjectItemDefinition
itemDefinition;
432
ProjectItemDefinition
itemDefinition;
ObjectModelRemoting\Helpers\ViewValidation.cs (1)
260
if (VerifyCheckType<
ProjectItemDefinition
>(view, real, context, Verify))
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
164
public static void Verify(
ProjectItemDefinition
view,
ProjectItemDefinition
real, ValidationContext context)
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemDefinitionLink.cs (2)
12
internal sealed class MockProjectItemDefinitionLinkRemoter : MockLinkRemoter<
ProjectItemDefinition
>
14
public override
ProjectItemDefinition
CreateLinkedObject(IImportHolder holder)
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (3)
46
=> this.OwningCollection.ExportDictionary<string,
ProjectItemDefinition
, MockProjectItemDefinitionLinkRemoter>(this.Source.ItemDefinitions);
145
public override IDictionary<string,
ProjectItemDefinition
> ItemDefinitions
146
=> this.Linker.ImportDictionary<string,
ProjectItemDefinition
, MockProjectItemDefinitionLinkRemoter>(this.Proxy.ItemDefinitions);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectMetadataLink.cs (3)
37
return this.OwningCollection.Export<
ProjectItemDefinition
, MockProjectItemDefinitionLinkRemoter>((
ProjectItemDefinition
)parent);
76
return this.Linker.Import<
ProjectItemDefinition
, MockProjectItemDefinitionLinkRemoter>((MockProjectItemDefinitionLinkRemoter)parentRemoter);
Microsoft.Build.Engine.UnitTests (1)
Instance\TaskItem_Tests.cs (1)
217
ProjectItemDefinition
projectItemDefinition = new ProjectItemDefinition(project, "MyItem");