21 writes to Value
Microsoft.Build (4)
Construction\ProjectItemDefinitionElement.cs (1)
84
metadata.
Value
= unevaluatedValue;
Construction\ProjectItemElement.cs (1)
401
metadata.
Value
= unevaluatedValue;
Construction\ProjectRootElement.cs (1)
1347
metadatum.
Value
= unevaluatedValue;
Definition\ProjectMetadata.cs (1)
143
_xml.
Value
= value;
Microsoft.Build.Engine.OM.UnitTests (17)
Construction\ConstructionEditing_Tests.cs (8)
1150
firstMetadata.
Value
= "metadata1";
1151
secondMetadata.
Value
= "metadata2";
2549
element.
Value
= "v1";
2560
element.
Value
= "v1";
2843
element.
Value
= "m2";
2896
element.
Value
= "v1";
2907
element.
Value
= "v1";
3102
element.
Value
= "m2";
Construction\ProjectMetadataElement_Tests.cs (7)
210
metadatum.
Value
= "m1b";
350
metadatum.
Value
= String.Empty;
364
metadatum.
Value
= null;
577
metadata.
Value
= "v2";
620
metadata.
Value
= "v2";
694
metadata.
Value
= @"<&>""";
737
metadata.
Value
= @"<&>""";
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (1)
354
metadata.VerifySetter("NewValue", (md) => md.Value, (md, v) => md.
Value
= v);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectMetadataElementLink.cs (1)
28
public string Value { get => MetadataXml.Value; set => MetadataXml.
Value
= value; }
56 references to Value
Microsoft.Build (12)
Definition\ProjectMetadata.cs (2)
128
return _xml.
Value
;
138
if (String.Equals(_xml.
Value
, value, StringComparison.Ordinal))
Evaluation\Evaluator.cs (2)
508
metadataElement.
Value
,
1360
string evaluatedValue = _expander.ExpandIntoStringLeaveEscaped(metadataElement.
Value
, ExpanderOptions.ExpandPropertiesAndCustomMetadata, itemDefinitionElement.Location);
Evaluation\LazyItemEvaluator.cs (1)
640
metadatumElement.
Value
,
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (3)
213
string evaluatedValue = _expander.ExpandIntoStringLeaveEscaped(metadataElement.
Value
, metadataExpansionOptions, metadataElement.Location);
251
string evaluatedValue = _expander.ExpandIntoStringLeaveEscaped(metadataElement.
Value
, metadataExpansionOptions, metadataElement.Location);
277
yield return metadataElement.
Value
;
Evaluation\ProjectParser.cs (2)
408
bool containsItemVector = Expander.ExpressionContainsItemVector(metadatum.
Value
);
409
ProjectErrorUtilities.VerifyThrowInvalidProject(!containsItemVector, element.Location, "MetadataDefinitionCannotContainItemVectorExpression", metadatum.
Value
, metadatum.Name);
ObjectModelRemoting\ConstructionObjectLinks\ProjectMetadataElementLink.cs (1)
17
/// Access to remote <see cref="ProjectMetadataElement.
Value
"/>.
ObjectModelRemoting\ConstructionObjectLinks\ProjectPropertyElementLink.cs (1)
17
/// Access to remote <see cref="ProjectMetadataElement.
Value
"/>.
Microsoft.Build.Engine.OM.UnitTests (44)
Construction\ProjectItemDefinitionElement_Tests.cs (4)
66
Assert.Equal("v1", Helpers.GetFirst(definition.Metadata).
Value
);
116
Assert.Equal("v1", metadata[0].
Value
);
118
Assert.Equal("v2", metadata[1].
Value
);
121
Assert.Equal("v3", metadata[2].
Value
);
Construction\ProjectItemElement_Tests.cs (5)
369
Assert.Equal("v1", metadata1[0].
Value
);
377
Assert.Equal("v2", metadata2[0].
Value
);
418
Assert.Equal("v1", metadata[0].
Value
);
420
Assert.Equal("v2", metadata[1].
Value
);
423
Assert.Equal("v3", metadata[2].
Value
);
Construction\ProjectMetadataElement_Tests.cs (21)
39
Assert.Equal("m1", metadatum.
Value
);
211
Assert.Equal("m1b", metadatum.
Value
);
351
Assert.Equal(String.Empty, metadatum.
Value
);
438
Assert.Equal("v1", metadata.
Value
);
463
Assert.Equal("v1", metadata.
Value
);
497
Assert.Equal(@"<&>""", metadata.
Value
);
522
Assert.Equal(@"<&>""", metadata.
Value
);
574
Assert.Equal("v1", metadata.
Value
);
617
Assert.Equal("v1", metadata.
Value
);
691
Assert.Equal("v1", metadata.
Value
);
734
Assert.Equal("v1", metadata.
Value
);
820
Assert.Equal("v1", metadata.
Value
);
883
Assert.Equal("v1", metadata.
Value
);
952
Assert.Equal("v1", metadata.
Value
);
995
Assert.Equal("v1", metadata.
Value
);
1068
Assert.Equal("v1", metadata.
Value
);
1108
Assert.Equal("v1", metadata.
Value
);
1179
Assert.Equal("v1", metadata.
Value
);
1186
Assert.Equal("v2", metadata.
Value
);
1226
Assert.Equal("v1", metadata.
Value
);
1233
Assert.Equal("v2", metadata.
Value
);
Definition\DefinitionEditing_Tests.cs (2)
2016
Assert.Equal("%(l)", item.GetMetadata("m").Xml.
Value
);
2035
Assert.Equal("%(l)", item.GetMetadata("m").Xml.
Value
);
Definition\ProjectItem_Tests.cs (5)
2162
Assert.Equal("$(P);@(Foo)", metadata.Xml.
Value
);
2195
Assert.Equal("V", metadataElement.
Value
);
2251
Assert.Equal("V1", me1.
Value
);
2255
Assert.Equal("V2", me2.
Value
);
2307
Assert.Equal("V2", me1.
Value
);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
629
Assert.Equal(realXml.
Value
, viewXml.
Value
);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (4)
85
ViewValidation.VerifyMetadata(itemMetadata, (k) => itemWithMetadata1.View.Metadata.Where((md) => md.Name == k).FirstOrDefault().
Value
);
354
metadata.VerifySetter("NewValue", (md) => md.
Value
, (md, v) => md.Value = v);
707
ViewValidation.VerifyMetadata(itemMetadata, (k) => itemWithMetadata1.View.Metadata.Where((md) => md.Name == k).FirstOrDefault().
Value
);
708
ViewValidation.VerifyMetadata(itemMetadata, (k) => itemWithMetadata2.View.Metadata.Where((md) => md.Name == k).FirstOrDefault().
Value
);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectMetadataElementLink.cs (1)
28
public string Value { get => MetadataXml.
Value
; set => MetadataXml.Value = value; }