Skip to content

Commit 75bdaca

Browse files
authored
Fix syntax with single quotes
1 parent 3ec3fcd commit 75bdaca

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/msbuild/item-functions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Call item functions from MSBuild code
33
description: Explore how MSBuild code in tasks and targets can call item functions to get information about the items in the project.
4-
ms.date: 2/7/2025
4+
ms.date: 7/2/2025
55
ms.topic: how-to
66
helpviewer_keywords:
77
- msbuild, Item functions
@@ -57,11 +57,11 @@ The table below lists the intrinsic functions available for items.
5757
|`Exists`|`@(MyItems->Exists())`|Filters a set of items to those that actually exist on disk.|
5858
|`GetPathsOfAllDirectoriesAbove`| `@(MyItems->GetPathsOfAllFilesAbove())`|Given a set of items, returns items representing all the ancestor directories. No order is guaranteed.|
5959
|`Reverse`|`@(MyItems->Reverse())`|Returns the items in reverse order.|
60-
|`AnyHaveMetadataValue`|`@(MyItems->AnyHaveMetadataValue("MetadataName", "MetadataValue"))` | Returns a `boolean` to indicate whether any item has the given metadata name and value. The comparison is case insensitive. |
60+
|`AnyHaveMetadataValue`|`@(MyItems->AnyHaveMetadataValue('MetadataName', 'MetadataValue'))` | Returns a `boolean` to indicate whether any item has the given metadata name and value. The comparison is case insensitive. |
6161
|`ClearMetadata`|`@(MyItems->ClearMetadata())` |Returns items with their metadata cleared. Only the `itemspec` is retained.|
62-
|`HasMetadata`|`@(MyItems->HasMetadata("MetadataName"))`|Returns items that have the given metadata name. The comparison is case insensitive.|
63-
|`Metadata`|`@(MyItems->Metadata("MetadataName"))`|Returns the values of the metadata that have the metadata name. The items returned have the same metadata as the source values.|
64-
|`WithMetadataValue`|`@(MyItems->WithMetadataValue("MetadataName", "MetadataValue"))`|Returns items that have the given metadata name and value. The comparison is case insensitive.|
62+
|`HasMetadata`|`@(MyItems->HasMetadata('MetadataName'))`|Returns items that have the given metadata name. The comparison is case insensitive.|
63+
|`Metadata`|`@(MyItems->Metadata('MetadataName'))`|Returns the values of the metadata that have the metadata name. The items returned have the same metadata as the source values.|
64+
|`WithMetadataValue`|`@(MyItems->WithMetadataValue('MetadataName', 'MetadataValue'))`|Returns items that have the given metadata name and value. The comparison is case insensitive.|
6565

6666
> [!NOTE]
6767
> `Exists` can also be used in other contexts; in [MSBuild conditions](msbuild-conditions.md), for example `Condition="Exists('path')"`; or in [Static property functions](property-functions.md), for example `$([System.IO.File]::Exists("path"))`.

0 commit comments

Comments
 (0)