40 references to Value
Microsoft.Build (40)
Evaluation\Expander.ItemExpander.cs (8)
239if (!string.IsNullOrEmpty(entry.Value)) 461/// <see cref="TransformEntry.Value"/> contains the escaped value, and <see cref="TransformEntry.Item"/> 630if (entries is [{ Value: var value }]) 651builder.Append(entry.Value); 757if (!string.IsNullOrEmpty(entry.Value) && currentLength + entry.Value.Length > CharacterLimitPerExpansion) 762builder.Append(entry.Value, 0, truncateIndex); 768builder.Append(entry.Value);
Evaluation\Expander.ItemExpander.Transforms.cs (29)
110if (String.IsNullOrEmpty(item.Value)) 127result = ItemSpecModifiers.GetItemSpecModifier(item.Value, functionName, directoryToUse, definingProjectEscaped); 133ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Value, e.Message); 163if (String.IsNullOrEmpty(item.Value)) 169string unescapedPath = EscapingUtilities.UnescapeAll(item.Value); 193ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Value, e.Message); 219if (String.IsNullOrEmpty(item.Value)) 225string unescapedPath = EscapingUtilities.UnescapeAll(item.Value); 250if (String.IsNullOrEmpty(item.Value)) 258string unescapedPath = EscapingUtilities.UnescapeAll(item.Value); 289ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Value, e.Message); 334if (String.IsNullOrEmpty(item.Value)) 340if (!directoryNameTable.TryGetValue(item.Value, out directoryName)) 343string unescapedPath = EscapingUtilities.UnescapeAll(item.Value); 370ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Value, e.Message); 492if (item.Value != null && seenItems.Add(item.Value)) 570AddTransformResult(output, item.Value is null ? null : literal, item.Item, includeNullEntries); 584if (item.Value is not null) 586include = GetMetadataValueFromMatch(match, item.Value, item.Item, elementLocation); 611if (item.Value is not null) 618includeBuilder.Append(GetMetadataValueFromMatch(match, item.Value, item.Item, elementLocation)); 649if (item.Value is not null) 655includeBuilder.Append(GetMetadataValueFromMatch(match, item.Value, item.Item, elementLocation)); 821item.Value, 822item.Value, 831object result = function.Execute(item.Value, expander._properties, ExpanderOptions.ExpandAll, elementLocation); 862if (includeNullEntries || item.Value != null) 864output.Add(new TransformEntry(item.Value, null));
Evaluation\Expander.TransformEntry.cs (2)
16/// <see cref="Value"/> may be null when the entry represents a filtered-out item 40value = Value;
Evaluation\ItemSpec.cs (1)
128entries?.Select(i => new ReferencedItem(i.Item, new ValueFragment(i.Value, ProjectDirectory))).ToList() ?? [];