5 instantiations of ProjectItemDefinitionInstance
Microsoft.Build (4)
Instance\ProjectInstance.cs (3)
983
new
ProjectItemDefinitionInstance
(projectItemDefinition.ItemType, metadata));
1727
ProjectItemDefinitionInstance itemDefinitionInstance = new
ProjectItemDefinitionInstance
(itemType);
3438
_itemDefinitions.Add(new
ProjectItemDefinitionInstance
(definition));
Instance\ProjectItemDefinitionInstance.cs (1)
231
var instance = new
ProjectItemDefinitionInstance
();
Microsoft.Build.Engine.UnitTests (1)
Instance\TaskItem_Tests.cs (1)
219
ProjectItemDefinitionInstance itemDefinition =
new
(projectItemDefinition);
105 references to ProjectItemDefinitionInstance
Microsoft.Build (92)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
158
ProjectItemDefinitionInstance
itemDefinition;
Instance\ProjectInstance.cs (66)
77
public class ProjectInstance : IPropertyProvider<ProjectPropertyInstance>, IItemProvider<ProjectItemInstance>, IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>, ITranslatable
158
private IRetrievableEntryHashSet<
ProjectItemDefinitionInstance
> _itemDefinitions;
544
_itemDefinitions = new RetrievableEntryHashSet<
ProjectItemDefinitionInstance
>(projectToInheritFrom._itemDefinitions, MSBuildNameIgnoreCaseComparer.Default);
560
IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
> thisAsIEvaluatorData = this;
743
ProjectItemDefinitionInstance
>)this).BeforeTargets = CreateCloneDictionary(
745
ProjectItemDefinitionInstance
>)that).BeforeTargets, StringComparer.OrdinalIgnoreCase);
747
ProjectItemDefinitionInstance
>)this).AfterTargets = CreateCloneDictionary(
749
ProjectItemDefinitionInstance
>)that).AfterTargets, StringComparer.OrdinalIgnoreCase);
903
private static IRetrievableEntryHashSet<
ProjectItemDefinitionInstance
> GetImmutableItemDefinitionsHashSetFromImmutableProject(Project linkedProject)
911
var hashSet = new ImmutableElementCollectionConverter<ProjectItemDefinition,
ProjectItemDefinitionInstance
>(
964
private static
ProjectItemDefinitionInstance
ConvertCachedItemDefinitionToInstance(ProjectItemDefinition projectItemDefinition)
966
ProjectItemDefinitionInstance
result = null;
968
if (projectItemDefinition is IImmutableInstanceProvider<
ProjectItemDefinitionInstance
> instanceProvider)
1114
bool IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.CanEvaluateElementsWithFalseConditions => false;
1205
public IDictionary<string,
ProjectItemDefinitionInstance
> ItemDefinitions
1281
TaskRegistry IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.TaskRegistry
1298
Toolset IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.Toolset
1309
string IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.SubToolsetVersion
1323
string IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.ExplicitToolsVersion
1333
PropertyDictionary<ProjectPropertyInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.GlobalPropertiesDictionary
1340
PropertyDictionary<ProjectPropertyInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.EnvironmentVariablePropertiesDictionary
1348
ISet<string> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.GlobalPropertiesToTreatAsLocal
1364
PropertyDictionary<ProjectPropertyInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.Properties
1374
IEnumerable<
ProjectItemDefinitionInstance
> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.ItemDefinitionsEnumerable
1384
IItemDictionary<ProjectItemInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.Items
1395
List<string> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.InitialTargets
1413
List<string> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.DefaultTargets
1431
IDictionary<string, List<TargetSpecification>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.BeforeTargets
1441
IDictionary<string, List<TargetSpecification>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.AfterTargets
1454
Dictionary<string, List<string>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.ConditionedProperties
1468
bool IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.ShouldEvaluateForDesignTime
1620
public static string GetEvaluatedItemIncludeEscaped(
ProjectItemDefinitionInstance
item)
1651
public static string GetMetadataValueEscaped(
ProjectItemDefinitionInstance
item, string name)
1685
void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.
1695
void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.FinishEvaluation()
1705
void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.AddItem(ProjectItemInstance item)
1716
void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.AddItemIgnoringCondition(ProjectItemInstance item)
1725
IItemDefinition<ProjectMetadataInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.AddItemDefinition(string itemType)
1727
ProjectItemDefinitionInstance
itemDefinitionInstance = new ProjectItemDefinitionInstance(itemType);
1743
void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.AddToAllEvaluatedPropertiesList(ProjectPropertyInstance property)
1757
void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.AddToAllEvaluatedItemDefinitionMetadataList(ProjectMetadataInstance itemDefinitionMetadatum)
1771
void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.AddToAllEvaluatedItemsList(ProjectItemInstance item)
1779
IItemDefinition<ProjectMetadataInstance> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.GetItemDefinition(string itemType)
1781
ProjectItemDefinitionInstance
itemDefinitionInstance;
1794
ProjectPropertyInstance IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext, bool isEnvironmentVariable)
1807
ProjectPropertyInstance IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.SetProperty(ProjectPropertyElement propertyElement, string evaluatedValueEscaped, LoggingContext loggingContext)
1818
ProjectTargetInstance IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.GetTarget(string targetName)
1831
void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.AddTarget(ProjectTargetInstance target)
1839
void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.RecordImport(
1846
((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>)this).RecordImportWithDuplicates(importElement, import, versionEvaluated);
1852
void IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.RecordImportWithDuplicates(ProjectImportElement importElement, ProjectRootElement import, int versionEvaluated)
2285
foreach (
ProjectItemDefinitionInstance
itemDefinitionInstance in _itemDefinitions.Values)
2426
ProjectItemDefinitionInstance
.FactoryForDeserialization,
2427
capacity => new RetrievableEntryHashSet<
ProjectItemDefinitionInstance
>(capacity, MSBuildNameIgnoreCaseComparer.Default));
2743
if (((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>)this).BeforeTargets.TryGetValue(target, out beforeTargetsForTarget))
2760
if (((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>)this).AfterTargets.TryGetValue(target, out afterTargetsForTarget))
3100
_itemDefinitions = new RetrievableEntryHashSet<
ProjectItemDefinitionInstance
>(MSBuildNameIgnoreCaseComparer.Default);
3171
Evaluator<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>.Evaluate(
3224
((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>)this).BeforeTargets = CreateCloneDictionary(beforeTargets, StringComparer.OrdinalIgnoreCase);
3225
((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance,
ProjectItemDefinitionInstance
>)this).AfterTargets = CreateCloneDictionary(afterTargets, StringComparer.OrdinalIgnoreCase);
3326
List<
ProjectItemDefinitionInstance
> inheritedItemDefinitions = null;
3329
inheritedItemDefinitions = new List<
ProjectItemDefinitionInstance
>(item.InheritedItemDefinitions.Count);
3385
IList<
ProjectItemDefinitionInstance
> inheritedItemDefinitions =
3386
new ImmutableItemDefinitionsListConverter<ProjectItemDefinition,
ProjectItemDefinitionInstance
>(
3434
_itemDefinitions = new RetrievableEntryHashSet<
ProjectItemDefinitionInstance
>(itemDefinitions.Count, MSBuildNameIgnoreCaseComparer.Default);
Instance\ProjectItemDefinitionInstance.cs (3)
70
/// Initializes a new instance of the <see cref="
ProjectItemDefinitionInstance
"/> class.
229
internal static
ProjectItemDefinitionInstance
FactoryForDeserialization(ITranslator translator)
231
var
instance = new ProjectItemDefinitionInstance();
Instance\ProjectItemInstance.cs (17)
104
IList<
ProjectItemDefinitionInstance
> itemDefinitions,
704
IList<
ProjectItemDefinitionInstance
> itemDefinitions,
713
IList<
ProjectItemDefinitionInstance
> inheritedItemDefinitions;
717
inheritedItemDefinitions = (itemDefinitions == null) ? null : new List<
ProjectItemDefinitionInstance
>(itemDefinitions);
719
ProjectItemDefinitionInstance
itemDefinition;
722
inheritedItemDefinitions ??= new List<
ProjectItemDefinitionInstance
>();
801
private IList<
ProjectItemDefinitionInstance
> _itemDefinitions;
831
IList<
ProjectItemDefinitionInstance
> itemDefinitions,
1436
destinationAsTaskItem._itemDefinitions = (_itemDefinitions == null) ? null : new List<
ProjectItemDefinitionInstance
>(_itemDefinitions);
1543
ProjectItemDefinitionInstance
.FactoryForDeserialization,
1544
(capacity) => new List<
ProjectItemDefinitionInstance
>(capacity));
1754
ProjectItemDefinitionInstance
.FactoryForDeserialization,
1755
(capacity) => new List<
ProjectItemDefinitionInstance
>(capacity));
2089
List<
ProjectItemDefinitionInstance
> itemDefinitionsClone = null;
2092
itemDefinitionsClone ??= new List<
ProjectItemDefinitionInstance
>(source._taskItem._itemDefinitions.Count + 1);
2096
ProjectItemDefinitionInstance
sourceItemDefinition;
2099
itemDefinitionsClone ??= new List<
ProjectItemDefinitionInstance
>();
ObjectModelRemoting\LinkedObjectFactory.cs (5)
265
private class LinkedProjectItemDefinition : ProjectItemDefinition, ILinkableObject, IImmutableInstanceProvider<
ProjectItemDefinitionInstance
>
267
private
ProjectItemDefinitionInstance
_immutableInstance;
275
public
ProjectItemDefinitionInstance
ImmutableInstance => _immutableInstance;
277
public
ProjectItemDefinitionInstance
GetOrSetImmutableInstance(
ProjectItemDefinitionInstance
instance)
Microsoft.Build.Engine.UnitTests (13)
Definition\ItemDefinitionGroup_Tests.cs (6)
599
List<
ProjectItemDefinitionInstance
> itemdefs = new List<
ProjectItemDefinitionInstance
>();
635
List<
ProjectItemDefinitionInstance
> itemdefs = new List<
ProjectItemDefinitionInstance
>();
677
List<
ProjectItemDefinitionInstance
> itemdefs = new List<
ProjectItemDefinitionInstance
>();
Instance\TaskItem_Tests.cs (2)
210
List<
ProjectItemDefinitionInstance
> itemDefinitions = new();
219
ProjectItemDefinitionInstance
itemDefinition = new(projectItemDefinition);
TestComparers\ProjectInstanceModelTestComparers.cs (5)
14
Microsoft.Build.Execution.ProjectMetadataInstance, Microsoft.Build.Execution.
ProjectItemDefinitionInstance
>;
244
public class ItemDefinitionComparer : IEqualityComparer<
ProjectItemDefinitionInstance
>
246
public bool Equals(
ProjectItemDefinitionInstance
x,
ProjectItemDefinitionInstance
y)
254
public int GetHashCode(
ProjectItemDefinitionInstance
obj)