From c9e8d66462c4a716799ec20d5f6c4f1fe0397ec8 Mon Sep 17 00:00:00 2001 From: Rainer Sigwald Date: Thu, 25 Oct 2018 10:06:43 -0500 Subject: [PATCH] MSBuild: InitialTargets are additive --- docs/msbuild/project-element-msbuild.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/msbuild/project-element-msbuild.md b/docs/msbuild/project-element-msbuild.md index a9287c4640a..80f1981f825 100644 --- a/docs/msbuild/project-element-msbuild.md +++ b/docs/msbuild/project-element-msbuild.md @@ -53,7 +53,7 @@ Required root element of an [!INCLUDE[vstecmsbuild](../extensibility/internals/i | Attribute | Description | |------------------------| - | | `DefaultTargets` | Optional attribute.

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.

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. | -| `InitialTargets` | Optional attribute.

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. | +| `InitialTargets` | Optional attribute.

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. | | `Sdk` | Optional attribute.

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, `` or ``. | | `ToolsVersion` | Optional attribute.

The version of the Toolset MSBuild uses to determine the values for $(MSBuildBinPath) and $(MSBuildToolsPath). | | `TreatAsLocalProperty` | Optional attribute.

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.

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). |