Skip to content

Commit 06c969d

Browse files
authored
Merge pull request #1737 from rainersigwald/initialtargets-additive
MSBuild: InitialTargets are additive
2 parents 154b4ed + c9e8d66 commit 06c969d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/msbuild/project-element-msbuild.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Required root element of an [!INCLUDE[vstecmsbuild](../extensibility/internals/i
5353
| Attribute | Description |
5454
|------------------------| - |
5555
| `DefaultTargets` | Optional attribute.<br /><br /> The default target or targets to be the entry point of the build if no target has been specified. Multiple targets are semi-colon (;) delimited.<br /><br /> If no default target is specified in either the `DefaultTargets` attribute or the [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)] command line, the engine executes the first target in the project file after the [Import](../msbuild/import-element-msbuild.md) elements have been evaluated. |
56-
| `InitialTargets` | Optional attribute.<br /><br /> The initial target or targets to be run before the targets specified in the `DefaultTargets` attribute or on the command line. Multiple targets are semi-colon (;) delimited. |
56+
| `InitialTargets` | Optional attribute.<br /><br /> The initial target or targets to be run before the targets specified in the `DefaultTargets` attribute or on the command line. Multiple targets are semi-colon (`;`) delimited. If multiple imported files define `InitialTargets`, all targets mentioned will be run, in the order the imports are encountered. |
5757
| `Sdk` | Optional attribute. <br /><br /> The SDK name and optional version to use to create implicit Import statements that are added to the .proj file. If no version is specified, MSBuild will attempt to resolve a default version. For example, `<Project Sdk="Microsoft.NET.Sdk" />` or `<Project Sdk="My.Custom.Sdk/1.0.0" />`. |
5858
| `ToolsVersion` | Optional attribute.<br /><br /> The version of the Toolset MSBuild uses to determine the values for $(MSBuildBinPath) and $(MSBuildToolsPath). |
5959
| `TreatAsLocalProperty` | Optional attribute.<br /><br /> Property names that won't be considered to be global. This attribute prevents specific command-line properties from overriding property values that are set in a project or targets file and all subsequent imports. Multiple properties are semi-colon (;) delimited.<br /><br /> Normally, global properties override property values that are set in the project or targets file. If the property is listed in the `TreatAsLocalProperty` value, the global property value doesn't override property values that are set in that file and any subsequent imports. For more information, see [How to: Build the same source files with different options](../msbuild/how-to-build-the-same-source-files-with-different-options.md). **Note:** You set global properties at a command prompt by using the **-property** (or **-p**) switch. You can also set or modify global properties for child projects in a multi-project build by using the `Properties` attribute of the MSBuild task. For more information, see [MSBuild task](../msbuild/msbuild-task.md). |

0 commit comments

Comments
 (0)