Skip to content

Commit 6710fac

Browse files
authored
Merge pull request #3893 from GitHubber17/from-public-2368
[PUBLIC_MOVE] commits from public #2368
2 parents c9b776a + 6a84bf4 commit 6710fac

File tree

1 file changed

+47
-47
lines changed

1 file changed

+47
-47
lines changed

docs/msbuild/itemdefinitiongroup-element-msbuild.md

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,80 +2,80 @@
22
title: "ItemDefinitionGroup Element (MSBuild) | Microsoft Docs"
33
ms.date: "03/13/2017"
44
ms.topic: "reference"
5-
f1_keywords:
5+
f1_keywords:
66
- "http://schemas.microsoft.com/developer/msbuild/2003#ItemDefinitionGroup"
7-
dev_langs:
7+
dev_langs:
88
- "VB"
99
- "CSharp"
1010
- "C++"
1111
- "jsharp"
12-
helpviewer_keywords:
12+
helpviewer_keywords:
1313
- "ItemDefinitionGroup Element [MSBuild]"
1414
- "<ItemDefinitionGroup> Element [MSBuild]"
1515
ms.assetid: 4e9fb04b-5148-4ae5-a394-42861dd62371
1616
author: mikejo5000
1717
ms.author: mikejo
1818
manager: jillfra
19-
ms.workload:
19+
ms.workload:
2020
- "multiple"
2121
---
2222
# ItemDefinitionGroup element (MSBuild)
23-
The `ItemDefinitionGroup` element lets you define a set of Item Definitions, which are metadata values that are applied to all items in the project, by default. ItemDefinitionGroup supersedes the need to use the [CreateItem task](../msbuild/createitem-task.md) and the [CreateProperty task](../msbuild/createproperty-task.md). For more information, see [Item definitions](../msbuild/item-definitions.md).
23+
The `ItemDefinitionGroup` element lets you define a set of Item Definitions, which are metadata values that are applied to all items in the project, by default. ItemDefinitionGroup supersedes the need to use the [CreateItem task](../msbuild/createitem-task.md) and the [CreateProperty task](../msbuild/createproperty-task.md). For more information, see [Item definitions](../msbuild/item-definitions.md).
2424

25-
\<Project>
26-
\<ItemDefinitionGroup>
25+
\<Project>
26+
\<ItemDefinitionGroup>
2727

28-
## Syntax
28+
## Syntax
2929

30-
```xml
31-
<ItemDefinitionGroup Condition="'String A' == 'String B'">
32-
<Item1>... </Item1>
33-
<Item2>... </Item2>
34-
</ItemDefinitionGroup>
35-
```
30+
```xml
31+
<ItemDefinitionGroup Condition="'String A' == 'String B'">
32+
<Item1>... </Item1>
33+
<Item2>... </Item2>
34+
</ItemDefinitionGroup>
35+
```
3636

37-
## Attributes and elements
38-
The following sections describe attributes, child elements, and parent elements.
37+
## Attributes and elements
38+
The following sections describe attributes, child elements, and parent elements.
3939

40-
### Attributes
40+
### Attributes
4141

42-
|Attribute|Description|
43-
|---------------|-----------------|
44-
|`Condition`|Optional attribute. Condition to be evaluated. For more information, see [Conditions](../msbuild/msbuild-conditions.md).|
42+
|Attribute|Description|
43+
|---------------|-----------------|
44+
|`Condition`|Optional attribute. Condition to be evaluated. For more information, see [Conditions](../msbuild/msbuild-conditions.md).|
4545

46-
### Child elements
46+
### Child elements
4747

48-
|Element|Description|
49-
|-------------|-----------------|
50-
|[Item](../msbuild/item-element-msbuild.md)|Defines the inputs for the build process. There may be zero or more `Item` elements in an `ItemDefinitionGroup`.|
48+
|Element|Description|
49+
|-------------|-----------------|
50+
|[Item](../msbuild/item-element-msbuild.md)|Defines the inputs for the build process. There may be zero or more `Item` elements in an `ItemDefinitionGroup`.|
5151

52-
### Parent elements
52+
### Parent elements
5353

5454
| Element | Description |
5555
| - | - |
5656
| [Project](../msbuild/project-element-msbuild.md) | Required root element of an [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)] project file. |
5757

58-
## Example
59-
The following code example defines two metadata items, m and n, in an ItemDefinitionGroup. In this example, the default metadata "m" is applied to Item "i" because metadata "m" is not explicitly defined by Item "i". However, default metadata "n" is not applied to Item "i" because metadata "n" is already defined by Item "i".
58+
## Example
59+
The following code example defines two metadata items, m and n, in an ItemDefinitionGroup. In this example, the default metadata "m" is applied to Item "i" because metadata "m" is not explicitly defined by Item "i". However, default metadata "n" is not applied to Item "i" because metadata "n" is already defined by Item "i".
6060

61-
```xml
62-
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
63-
<ItemDefinitionGroup>
64-
<i>
65-
<m>m1</m>
66-
<n>n1</n>
67-
</i>
68-
</ItemDefinitionGroup>
69-
<ItemGroup>
70-
<i Include="a">
71-
<o>o1</o>
72-
<n>n2</n>
73-
</i>
74-
</ItemGroup>
75-
...
76-
</Project>
77-
```
61+
```xml
62+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
63+
<ItemDefinitionGroup>
64+
<i>
65+
<m>m1</m>
66+
<n>n1</n>
67+
</i>
68+
</ItemDefinitionGroup>
69+
<ItemGroup>
70+
<i Include="a">
71+
<o>o1</o>
72+
<n>n2</n>
73+
</i>
74+
</ItemGroup>
75+
...
76+
</Project>
77+
```
7878

79-
## See also
80-
[Project file schema reference](../msbuild/msbuild-project-file-schema-reference.md)
81-
[Items](../msbuild/msbuild-items.md)
79+
## See also
80+
[Project file schema reference](../msbuild/msbuild-project-file-schema-reference.md)
81+
[Items](../msbuild/msbuild-items.md)

0 commit comments

Comments
 (0)