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)
108if (String.IsNullOrEmpty(item.Value)) 125result = ItemSpecModifiers.GetItemSpecModifier(item.Value, functionName, directoryToUse, definingProjectEscaped); 131ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Value, e.Message); 161if (String.IsNullOrEmpty(item.Value)) 167string unescapedPath = EscapingUtilities.UnescapeAll(item.Value); 191ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Value, e.Message); 217if (String.IsNullOrEmpty(item.Value)) 223string unescapedPath = EscapingUtilities.UnescapeAll(item.Value); 248if (String.IsNullOrEmpty(item.Value)) 256string unescapedPath = EscapingUtilities.UnescapeAll(item.Value); 287ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Value, e.Message); 332if (String.IsNullOrEmpty(item.Value)) 338if (!directoryNameTable.TryGetValue(item.Value, out directoryName)) 341string unescapedPath = EscapingUtilities.UnescapeAll(item.Value); 368ProjectErrorUtilities.ThrowInvalidProject(elementLocation, "InvalidItemFunctionExpression", functionName, item.Value, e.Message); 490if (item.Value != null && seenItems.Add(item.Value)) 568AddTransformResult(output, item.Value is null ? null : literal, item.Item, includeNullEntries); 582if (item.Value is not null) 584include = GetMetadataValueFromMatch(match, item.Value, item.Item, elementLocation); 609if (item.Value is not null) 616includeBuilder.Append(GetMetadataValueFromMatch(match, item.Value, item.Item, elementLocation)); 647if (item.Value is not null) 653includeBuilder.Append(GetMetadataValueFromMatch(match, item.Value, item.Item, elementLocation)); 819item.Value, 820item.Value, 829object result = function.Execute(item.Value, expander._properties, ExpanderOptions.ExpandAll, elementLocation); 860if (includeNullEntries || item.Value != null) 862output.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() ?? [];