17 instantiations of ProjectMetadataInstance
Microsoft.Build (15)
Instance\ProjectInstance.cs (3)
999
result = instanceProvider.GetOrSetImmutableInstance(new
ProjectMetadataInstance
(projectMetadata));
3344
IEnumerable<ProjectMetadataInstance> projectMetadataInstances = item.DirectMetadata.Select(directMetadatum => new
ProjectMetadataInstance
(directMetadatum));
3402
IEnumerable<ProjectMetadataInstance> projectMetadataInstances = item.DirectMetadata.Select(directMetadatum => new
ProjectMetadataInstance
(directMetadatum));
Instance\ProjectItemDefinitionInstance.cs (2)
62
IEnumerable<ProjectMetadataInstance> projectMetadataInstances = itemDefinition.Metadata.Select(originalMetadata => new
ProjectMetadataInstance
(originalMetadata));
201
ProjectMetadataInstance metadatum = new
ProjectMetadataInstance
(xml.Name, evaluatedValue);
Instance\ProjectItemInstance.cs (8)
129
IEnumerable<ProjectMetadataInstance> directMetadataInstances = directMetadata.Select(metadatum => new
ProjectMetadataInstance
(metadatum.Key, metadatum.Value));
608
IEnumerable<ProjectMetadataInstance> projectMetadataInstances = metadataList.Select(metadatum => new
ProjectMetadataInstance
(metadatum.Key, metadatum.Value));
1085
_directMetadata.ImportProperties(metadata.Select(kvp => new
ProjectMetadataInstance
(kvp.Key, kvp.Value, allowItemSpecModifiers: true)));
1794
return new
ProjectMetadataInstance
(interner.GetString(key), interner.GetString(value), allowItemSpecModifiers: true);
1861
ProjectMetadataInstance metadatum = new
ProjectMetadataInstance
(name, metadataValueEscaped, allowItemSpecModifiers /* may not be built-in metadata name */);
1883
ProjectMetadataInstance metadatum = new
ProjectMetadataInstance
(name, evaluatedValueEscaped, true /* may be built-in metadata name */);
1895
.Select(item => new
ProjectMetadataInstance
(item.Key, item.Value, true /* may be built-in metadata name */));
2063
IEnumerable<ProjectMetadataInstance> projectMetadataInstances = metadataList.Select(metadatum => new
ProjectMetadataInstance
(metadatum.Key.Name, metadatum.Value));
Instance\ProjectMetadataInstance.cs (2)
221
return new
ProjectMetadataInstance
(_name, _escapedValue, true /* allow built-in metadata names */);
229
return new
ProjectMetadataInstance
(translator);
Microsoft.Build.Engine.UnitTests (2)
Instance\ProjectMetadataInstance_Internal_Tests.cs (1)
41
ProjectMetadataInstance metadata = new
ProjectMetadataInstance
("m1", "v1", false);
Instance\TaskItem_Tests.cs (1)
229
directMetadata.Set(
new
(name, value));
192 references to ProjectMetadataInstance
Microsoft.Build (164)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
184
foreach (
ProjectMetadataInstance
metadatum in item.Metadata)
Instance\ProjectInstance.cs (60)
77
public class ProjectInstance : IPropertyProvider<ProjectPropertyInstance>, IItemProvider<ProjectItemInstance>, IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance,
ProjectMetadataInstance
, ProjectItemDefinitionInstance>, ITranslatable
560
IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance,
ProjectMetadataInstance
, ProjectItemDefinitionInstance> thisAsIEvaluatorData = this;
742
((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance,
ProjectMetadataInstance
,
744
((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance,
ProjectMetadataInstance
,
746
((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance,
ProjectMetadataInstance
,
748
((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance,
ProjectMetadataInstance
,
973
IDictionary<string,
ProjectMetadataInstance
> metadata = null;
976
metadata = new ImmutableElementCollectionConverter<ProjectMetadata,
ProjectMetadataInstance
>(
990
private static
ProjectMetadataInstance
ConvertCachedProjectMetadataToInstance(ProjectMetadata projectMetadata)
992
ProjectMetadataInstance
result = null;
994
if (projectMetadata is IImmutableInstanceProvider<
ProjectMetadataInstance
> instanceProvider)
1114
bool IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance,
ProjectMetadataInstance
, ProjectItemDefinitionInstance>.CanEvaluateElementsWithFalseConditions => false;
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
1630
public static string GetMetadataValueEscaped(
ProjectMetadataInstance
metadatum)
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)
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)
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)
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))
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);
3339
CopyOnWritePropertyDictionary<
ProjectMetadataInstance
> directMetadata = null;
3342
directMetadata = new CopyOnWritePropertyDictionary<
ProjectMetadataInstance
>();
3344
IEnumerable<
ProjectMetadataInstance
> projectMetadataInstances = item.DirectMetadata.Select(directMetadatum => new ProjectMetadataInstance(directMetadatum));
3391
ICopyOnWritePropertyDictionary<
ProjectMetadataInstance
> directMetadata = null;
3396
directMetadata = new ImmutablePropertyCollectionConverter<ProjectMetadata,
ProjectMetadataInstance
>(metadataDict, ConvertCachedProjectMetadataToInstance);
3400
directMetadata = new CopyOnWritePropertyDictionary<
ProjectMetadataInstance
>();
3402
IEnumerable<
ProjectMetadataInstance
> projectMetadataInstances = item.DirectMetadata.Select(directMetadatum => new ProjectMetadataInstance(directMetadatum));
Instance\ProjectItemDefinitionInstance.cs (19)
25
public class ProjectItemDefinitionInstance : IKeyed, IMetadataTable, IItemDefinition<
ProjectMetadataInstance
>, ITranslatable, IItemTypeDefinition
36
private IDictionary<string,
ProjectMetadataInstance
> _metadata;
61
var copyOnWriteMetadataDictionary = new CopyOnWritePropertyDictionary<
ProjectMetadataInstance
>();
62
IEnumerable<
ProjectMetadataInstance
> projectMetadataInstances = itemDefinition.Metadata.Select(originalMetadata => new ProjectMetadataInstance(originalMetadata));
74
internal ProjectItemDefinitionInstance(string itemType, IDictionary<string,
ProjectMetadataInstance
> metadata)
101
public ICollection<
ProjectMetadataInstance
> Metadata
107
return ReadOnlyEmptyCollection<
ProjectMetadataInstance
>.Instance;
110
return new ReadOnlyCollection<
ProjectMetadataInstance
>(_metadata.Values);
142
public
ProjectMetadataInstance
GetMetadata(string name)
180
ProjectMetadataInstance
metadatum = GetMetadata(name);
196
ProjectMetadataInstance
IItemDefinition<
ProjectMetadataInstance
>.SetMetadata(ProjectMetadataElement xml, string evaluatedValue,
ProjectMetadataInstance
predecessor)
199
_metadata ??= new CopyOnWritePropertyDictionary<
ProjectMetadataInstance
>();
201
ProjectMetadataInstance
metadatum = new ProjectMetadataInstance(xml.Name, evaluatedValue);
216
ProjectMetadataInstance
metadataInstance = kvp.Value;
226
translator.TranslateDictionary(ref _metadata,
ProjectMetadataInstance
.FactoryForDeserialization, CreateMetadataCollection);
239
private static IDictionary<string,
ProjectMetadataInstance
> CreateMetadataCollection(int capacity)
241
return new CopyOnWritePropertyDictionary<
ProjectMetadataInstance
>();
Instance\ProjectItemInstance.cs (74)
35
IItem<
ProjectMetadataInstance
>,
103
ICopyOnWritePropertyDictionary<
ProjectMetadataInstance
> directMetadata,
124
CopyOnWritePropertyDictionary<
ProjectMetadataInstance
> metadata = null;
128
metadata = new CopyOnWritePropertyDictionary<
ProjectMetadataInstance
>();
129
IEnumerable<
ProjectMetadataInstance
> directMetadataInstances = directMetadata.Select(metadatum => new ProjectMetadataInstance(metadatum.Key, metadatum.Value));
253
public IEnumerable<
ProjectMetadataInstance
> Metadata
365
public
ProjectMetadataInstance
GetMetadata(string name)
400
public
ProjectMetadataInstance
SetMetadata(string name, string evaluatedValue)
455
ProjectMetadataInstance
IItem<
ProjectMetadataInstance
>.SetMetadata(ProjectMetadataElement metadataElement, string evaluatedInclude)
606
CopyOnWritePropertyDictionary<
ProjectMetadataInstance
> metadata = new();
608
IEnumerable<
ProjectMetadataInstance
> projectMetadataInstances = metadataList.Select(metadatum => new ProjectMetadataInstance(metadatum.Key, metadatum.Value));
631
internal void SetMetadata(ICopyOnWritePropertyDictionary<
ProjectMetadataInstance
> metadataDictionary)
683
foreach (
ProjectMetadataInstance
metadataInstance in Metadata)
703
ICopyOnWritePropertyDictionary<
ProjectMetadataInstance
> directMetadata,
756
IItem<
ProjectMetadataInstance
>,
787
private ICopyOnWritePropertyDictionary<
ProjectMetadataInstance
> _directMetadata;
830
ICopyOnWritePropertyDictionary<
ProjectMetadataInstance
> directMetadata,
945
ICopyOnWritePropertyDictionary<
ProjectMetadataInstance
> metadataCollection = MetadataCollection;
949
foreach (
ProjectMetadataInstance
metadatum in (IEnumerable<
ProjectMetadataInstance
>)metadataCollection)
1084
_directMetadata ??= new CopyOnWritePropertyDictionary<
ProjectMetadataInstance
>();
1094
private IEnumerable<KeyValuePair<string, string>> EnumerateMetadataEager(ICopyOnWritePropertyDictionary<
ProjectMetadataInstance
> list)
1098
foreach (
var
projectMetadataInstance in list.Values)
1110
private IEnumerable<KeyValuePair<string, string>> EnumerateMetadata(ICopyOnWritePropertyDictionary<
ProjectMetadataInstance
> list)
1112
foreach (
var
projectMetadataInstance in list.Values)
1129
internal ICopyOnWritePropertyDictionary<
ProjectMetadataInstance
> MetadataCollection
1142
return (_directMetadata == null) ? new CopyOnWritePropertyDictionary<
ProjectMetadataInstance
>() : _directMetadata.DeepClone(); // copy on write!
1145
CopyOnWritePropertyDictionary<
ProjectMetadataInstance
> allMetadata = new CopyOnWritePropertyDictionary<
ProjectMetadataInstance
>();
1151
IEnumerable<
ProjectMetadataInstance
> metaData()
1157
foreach (
ProjectMetadataInstance
metadatum in _itemDefinitions[i].Metadata)
1173
foreach (
ProjectMetadataInstance
metadatum in (IEnumerable<
ProjectMetadataInstance
>)_directMetadata)
1189
IEnumerable<
ProjectMetadataInstance
> IItem<
ProjectMetadataInstance
>.Metadata => MetadataCollection;
1288
ProjectMetadataInstance
IItem<
ProjectMetadataInstance
>.GetMetadata(string name)
1297
ProjectMetadataInstance
IItem<
ProjectMetadataInstance
>.SetMetadata(ProjectMetadataElement metadataElement, string evaluatedInclude)
1332
ProjectMetadataInstance
metadatum;
1449
IEnumerable<
ProjectMetadataInstance
> metadataEnumerable = MetadataCollection;
1467
foreach (
ProjectMetadataInstance
metadatum in (IEnumerable<
ProjectMetadataInstance
>)MetadataCollection)
1499
foreach (
ProjectMetadataInstance
metadatum in (IEnumerable<
ProjectMetadataInstance
>)metadata)
1516
foreach (
ProjectMetadataInstance
metadatum in (IEnumerable<
ProjectMetadataInstance
>)MetadataCollection)
1549
ProjectMetadataInstance
.FactoryForDeserialization,
1550
(capacity) => new CopyOnWritePropertyDictionary<
ProjectMetadataInstance
>());
1641
foreach (
ProjectMetadataInstance
metadatum in (IEnumerable<
ProjectMetadataInstance
>)_directMetadata)
1647
ICopyOnWritePropertyDictionary<
ProjectMetadataInstance
> otherMetadata = other.MetadataCollection;
1654
foreach (
ProjectMetadataInstance
metadatum in (IEnumerable<
ProjectMetadataInstance
>)otherMetadata)
1764
ICopyOnWritePropertyDictionary<
ProjectMetadataInstance
> temp = MetadataCollection;
1771
foreach (
ProjectMetadataInstance
metadatum in (IEnumerable<
ProjectMetadataInstance
>)temp)
1789
IEnumerable<
ProjectMetadataInstance
> metaData =
1796
_directMetadata = new CopyOnWritePropertyDictionary<
ProjectMetadataInstance
>();
1811
internal
ProjectMetadataInstance
GetMetadataObject(string name)
1813
ProjectMetadataInstance
value = null;
1832
internal void SetMetadata(ICopyOnWritePropertyDictionary<
ProjectMetadataInstance
> metadata)
1856
internal
ProjectMetadataInstance
SetMetadataObject(string name, string metadataValueEscaped, bool allowItemSpecModifiers)
1860
_directMetadata ??= new CopyOnWritePropertyDictionary<
ProjectMetadataInstance
>();
1861
ProjectMetadataInstance
metadatum = new ProjectMetadataInstance(name, metadataValueEscaped, allowItemSpecModifiers /* may not be built-in metadata name */);
1882
_directMetadata ??= new CopyOnWritePropertyDictionary<
ProjectMetadataInstance
>();
1883
ProjectMetadataInstance
metadatum = new ProjectMetadataInstance(name, evaluatedValueEscaped, true /* may be built-in metadata name */);
1891
_directMetadata ??= new CopyOnWritePropertyDictionary<
ProjectMetadataInstance
>();
1942
private
ProjectMetadataInstance
GetItemDefinitionMetadata(string metadataName)
1950
ProjectMetadataInstance
metadataFromDefinition = _itemDefinitions[i].GetMetadata(metadataName);
2062
CopyOnWritePropertyDictionary<
ProjectMetadataInstance
> metadata = new CopyOnWritePropertyDictionary<
ProjectMetadataInstance
>();
2063
IEnumerable<
ProjectMetadataInstance
> projectMetadataInstances = metadataList.Select(metadatum => new ProjectMetadataInstance(metadatum.Key.Name, metadatum.Value));
Instance\ProjectMetadataInstance.cs (5)
21
public class ProjectMetadataInstance : IEquatable<
ProjectMetadataInstance
>, ITranslatable, IMetadatum, IImmutable
195
bool IEquatable<
ProjectMetadataInstance
>.Equals(
ProjectMetadataInstance
other)
219
public
ProjectMetadataInstance
DeepClone()
227
internal static
ProjectMetadataInstance
FactoryForDeserialization(ITranslator translator)
ObjectModelRemoting\LinkedObjectFactory.cs (5)
288
private class LinkedProjectMetadata : ProjectMetadata, ILinkableObject, IImmutableInstanceProvider<
ProjectMetadataInstance
>
290
private
ProjectMetadataInstance
_immutableInstance;
298
public
ProjectMetadataInstance
ImmutableInstance => _immutableInstance;
300
public
ProjectMetadataInstance
GetOrSetImmutableInstance(
ProjectMetadataInstance
instance)
Microsoft.Build.Engine.OM.UnitTests (3)
Instance\ProjectMetadataInstance_Tests.cs (3)
23
ProjectMetadataInstance
metadata = GetMetadataInstance();
32
private static
ProjectMetadataInstance
GetMetadataInstance()
37
ProjectMetadataInstance
metadata = item.SetMetadata("m", "m1");
Microsoft.Build.Engine.UnitTests (12)
Instance\ProjectMetadataInstance_Internal_Tests.cs (8)
26
ProjectMetadataInstance
metadata = GetMetadataInstance();
28
ProjectMetadataInstance
clone = metadata.DeepClone();
41
ProjectMetadataInstance
metadata = new ProjectMetadataInstance("m1", "v1", false);
43
TranslationHelpers.GetWriteTranslator().Translate(ref metadata,
ProjectMetadataInstance
.FactoryForDeserialization);
44
ProjectMetadataInstance
deserializedMetadata = null;
45
TranslationHelpers.GetReadTranslator().Translate(ref deserializedMetadata,
ProjectMetadataInstance
.FactoryForDeserialization);
54
private static
ProjectMetadataInstance
GetMetadataInstance()
59
ProjectMetadataInstance
metadata = item.SetMetadata("m", "m1");
Instance\TaskItem_Tests.cs (2)
197
ICopyOnWritePropertyDictionary<
ProjectMetadataInstance
> metadata = item.MetadataCollection;
224
CopyOnWritePropertyDictionary<
ProjectMetadataInstance
> directMetadata = new();
TestComparers\ProjectInstanceModelTestComparers.cs (2)
14
Microsoft.Build.Execution.
ProjectMetadataInstance
, Microsoft.Build.Execution.ProjectItemDefinitionInstance>;
249
Assert.Equal(x.Metadata, y.Metadata, EqualityComparer<
ProjectMetadataInstance
>.Default);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (13)
TargetTests.cs (13)
172
var
metadata = item.Metadata.Single();
205
var
metadata = item.Metadata.Single();
234
var
metadata = item.Metadata.Single();
265
var
itemType = item.Metadata.SingleOrDefault(m => m.Name == "ItemType");
269
var
metaName = item.Metadata.SingleOrDefault(m => m.Name == "MetadataName");
273
var
customMeta = item.Metadata.SingleOrDefault(m => m.Name == metaName.EvaluatedValue);
307
var
itemType = item.Metadata.SingleOrDefault(m => m.Name == "ItemType");
311
var
metaName = item.Metadata.SingleOrDefault(m => m.Name == "MetadataName");
315
var
customMeta = item.Metadata.SingleOrDefault(m => m.Name == metaName.EvaluatedValue);
347
var
itemType = item.Metadata.SingleOrDefault(m => m.Name == "ItemType");
351
var
metaName = item.Metadata.SingleOrDefault(m => m.Name == "MetadataName");
382
var
itemType = item.Metadata.SingleOrDefault(m => m.Name == "ItemType");
386
var
metaName = item.Metadata.SingleOrDefault(m => m.Name == "MetadataName");