Skip to content

Commit 00dd7ee

Browse files
Merge pull request #13467 from JanKrivanek/patch-5
Document MSBuild support for 'IfDifferent' for 'CopyToOutputDirectory'
2 parents 453acd1 + 2daec8c commit 00dd7ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/msbuild/common-msbuild-project-items.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Represents the source files for the compiler.
9696
| AutoGen | Optional boolean. Indicates whether the file was generated for the project by the Visual Studio integrated development environment (IDE). |
9797
| Link | Optional string. The notational path to be displayed when the file is physically located outside the influence of the project file. |
9898
| Visible | Optional boolean. Indicates whether to display the file in **Solution Explorer** in Visual Studio. |
99-
| CopyToOutputDirectory | Optional string. Determines whether to copy the file to the output directory. Values are:<br /><br /> 1. Never<br />2. Always<br />3. PreserveNewest |
99+
| CopyToOutputDirectory | Optional string. Determines whether to copy the file to the output directory. Values are:<br /><br /> 1. Never<br />2. Always<br />3. PreserveNewest<br />4. IfDifferent |
100100

101101
## EmbeddedResource
102102

@@ -112,7 +112,7 @@ Represents resources to be embedded in the generated assembly.
112112
| CustomToolNamespace | Optional string. The namespace in which any file generator that runs on this item should create code. |
113113
| Link | Optional string. The notational path is displayed if the file is physically located outside the influence of the project. |
114114
| Visible | Optional boolean. Indicates whether to display the file in **Solution Explorer** in Visual Studio. |
115-
| CopyToOutputDirectory | Optional string. Determines whether to copy the file to the output directory. Values are:<br /><br /> 1. Never<br />2. Always<br />3. PreserveNewest |
115+
| CopyToOutputDirectory | Optional string. Determines whether to copy the file to the output directory. Values are:<br /><br /> 1. Never<br />2. Always<br />3. PreserveNewest<br />4. IfDifferent |
116116
| LogicalName | Required string. The logical name of the embedded resource. |
117117

118118
## Content
@@ -129,7 +129,7 @@ Represents files that aren't compiled into the project, but may be embedded or p
129129
| PublishState | Required string. The publish state of the content, either:<br /><br /> - Default<br />- Included<br />- Excluded<br />- DataFile<br />- Prerequisite |
130130
| IsAssembly | Optional boolean. Specifies whether the file is an assembly. |
131131
| Visible | Optional boolean. Indicates whether to display the file in **Solution Explorer** in Visual Studio. |
132-
| CopyToOutputDirectory | Optional string. Determines whether to copy the file to the output directory. Values are:<br /><br /> 1. Never<br />2. Always<br />3. PreserveNewest |
132+
| CopyToOutputDirectory | Optional string. Determines whether to copy the file to the output directory. Values are:<br /><br /> 1. Never<br />2. Always<br />3. PreserveNewest<br />4. IfDifferent |
133133
| TargetPath | Optional string. The output path (relative to the configuration- and/or platform-specific output directory) of an item, including the filename. This respects the `Link` metadata, if provided. If TargetPath isn't provided, it's computed during the build process. See [AssignTargetPath](assigntargetpath-task.md). |
134134

135135
## None
@@ -144,7 +144,7 @@ Represents files that should have no role in the build process.
144144
| CustomToolNamespace | Optional string. The namespace in which any file generator that runs on this item should create code. |
145145
| Link | Optional string. The notational path to be displayed if the file is physically located outside the influence of the project. |
146146
| Visible | Optional boolean. Indicates whether to display the file in **Solution Explorer** in Visual Studio. |
147-
| CopyToOutputDirectory | Optional string. Determines whether to copy the file to the output directory. Values are:<br /><br /> 1. Never<br />2. Always<br />3. PreserveNewest |
147+
| CopyToOutputDirectory | Optional string. Determines whether to copy the file to the output directory. Values are:<br /><br /> 1. Never<br />2. Always<br />3. PreserveNewest<br />4. IfDifferent |
148148

149149
## AssemblyMetadata
150150

0 commit comments

Comments
 (0)