Skip to content

Commit f518e21

Browse files
authored
Merge pull request #2535 from v-thepet/batch20
MSBuild #20
2 parents 7492fe7 + 088c730 commit f518e21

10 files changed

+68
-67
lines changed

docs/msbuild/writecodefragment-task.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ manager: douge
1919
ms.workload:
2020
- "multiple"
2121
---
22-
# WriteCodeFragment Task
22+
# WriteCodeFragment task
2323
Generates a temporary code file from the specified generated code fragment. Does not delete the file.
2424

2525
## Parameters
@@ -33,8 +33,8 @@ Generates a temporary code file from the specified generated code fragment. Does
3333
|`OutputFile`|Optional <xref:Microsoft.Build.Framework.ITaskItem> output parameter.<br /><br /> Specifies the path of the file that was generated. If this parameter is set by using a file name, the destination folder is prepended to the file name. If it is set by using a root, the destination folder is ignored.<br /><br /> If this parameter is not set, the output file name is the destination folder, an arbitrary file name, and the default file name extension for the specified language.|
3434

3535
## Remarks
36-
In addition to having the parameters that are listed in the table, this task inherits parameters from the <xref:Microsoft.Build.Tasks.TaskExtension> class, which itself inherits from the <xref:Microsoft.Build.Utilities.Task> class. For a list of these additional parameters and their descriptions, see [TaskExtension Base Class](../msbuild/taskextension-base-class.md).
36+
In addition to having the parameters that are listed in the table, this task inherits parameters from the <xref:Microsoft.Build.Tasks.TaskExtension> class, which itself inherits from the <xref:Microsoft.Build.Utilities.Task> class. For a list of these additional parameters and their descriptions, see [TaskExtension base class](../msbuild/taskextension-base-class.md).
3737

38-
## See Also
38+
## See also
3939
[Tasks](../msbuild/msbuild-tasks.md)
40-
[Task Reference](../msbuild/msbuild-task-reference.md)
40+
[Task reference](../msbuild/msbuild-task-reference.md)

docs/msbuild/writecontexttlogs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ HRESULT WINAPI WriteContextTLogs(LPCTSTR intermediateDirectory, LPCTSTR tlogRoot
3434
[in] `tlogRootName`
3535
The root name of the log file name.
3636
37-
## Return Value
37+
## Return value
3838
An **HRESULT** with the **SUCCEEDED** bit set if the tracking context was created.
3939
4040
## Requirements
41-
**Header:** FileTracker.h
41+
**Header:** *FileTracker.h*
4242
43-
## See Also
43+
## See also
4444
[WriteAllTLogs](../msbuild/writealltlogs.md)

docs/msbuild/writelinestofile-task.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ manager: douge
2121
ms.workload:
2222
- "multiple"
2323
---
24-
# WriteLinesToFile Task
24+
# WriteLinesToFile task
2525
Writes the paths of the specified items to the specified text file.
2626

27-
## Task Parameters
27+
## Task parameters
2828
The following table describes the parameters of the `WriteLinestoFile` task.
2929

3030
|Parameter|Description|
@@ -37,7 +37,7 @@ Writes the paths of the specified items to the specified text file.
3737
## Remarks
3838
If `Overwrite` is `true`, creates a new file, write the contents to the file, and then closes the file. If the target file already exists, it is overwritten. If `Overwrite` is `false`, appends the contents to file, creating the target file if it does not already exist.
3939

40-
In addition to the parameters listed above, this task inherits parameters from the <xref:Microsoft.Build.Tasks.TaskExtension> class, which itself inherits from the <xref:Microsoft.Build.Utilities.Task> class. For a list of these additional parameters and their descriptions, see [TaskExtension Base Class](../msbuild/taskextension-base-class.md).
40+
In addition to the parameters listed above, this task inherits parameters from the <xref:Microsoft.Build.Tasks.TaskExtension> class, which itself inherits from the <xref:Microsoft.Build.Utilities.Task> class. For a list of these additional parameters and their descriptions, see [TaskExtension base class](../msbuild/taskextension-base-class.md).
4141

4242
## Example
4343
The following example uses the `WriteLinesToFile` task to write the paths of the items in the `MyItems` item collection to the file specified by the `MyTextFile` item collection.
@@ -61,6 +61,6 @@ Writes the paths of the specified items to the specified text file.
6161
</Project>
6262
```
6363

64-
## See Also
64+
## See also
6565
[Tasks](../msbuild/msbuild-tasks.md)
66-
[Task Reference](../msbuild/msbuild-task-reference.md)
66+
[Task reference](../msbuild/msbuild-task-reference.md)

docs/msbuild/writing-multi-processor-aware-loggers.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ manager: douge
1515
ms.workload:
1616
- "multiple"
1717
---
18-
# Writing Multi-Processor-Aware Loggers
18+
# Write multi-processor-aware loggers
1919
The ability of [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)] to take advantage of multiple processors can decrease project building time, but it also adds complexity to build event logging. In a single-processor environment, events, messages, warnings, and errors arrive at the logger in a predictable, sequential manner. However, in a multi-processor environment, events from different sources can arrive at the same time or out of sequence. To provide for this, [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)] provides a multi-processor-aware logger and a new logging model, and lets you create custom "forwarding loggers."
2020

21-
## Multi-Processor Logging Challenges
21+
## Multi-processor logging challenges
2222
When you build one or more projects on a multi-processor or multi-core system, [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)] build events for all the projects are generated at the same time. An avalanche of event messages may arrive at the logger at the same time or out of sequence. Because a [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)] 2.0 logger is not designed to handle this situation, it can overwhelm the logger and cause increased build times, incorrect logger output, or even a broken build. To address these issues, the logger (starting in [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)] 3.5) can process out-of-sequence events and correlate events and their sources.
2323

2424
You can improve logging efficiency even more by creating a custom forwarding logger. A custom forwarding logger acts as a filter by letting you choose, before you build, only the events you want to monitor. When you use a custom forwarding logger, unwanted events cannot overwhelm the logger, clutter your logs, or slow build times.
2525

26-
## Multi-Processor Logging Models
26+
## Multi-processor logging models
2727
To provide for multi-processor-related build issues, [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)] supports two logging models, central and distributed.
2828

29-
### Central Logging Model
30-
In the central logging model, a single instance of MSBuild.exe acts as the "central node," and child instances of the central node ("secondary nodes") attach to the central node to help it perform build tasks.
29+
### Central logging model
30+
In the central logging model, a single instance of *MSBuild.exe* acts as the "central node," and child instances of the central node ("secondary nodes") attach to the central node to help it perform build tasks.
3131

3232
![Central Logger Model](../msbuild/media/centralnode.png "CentralNode")
3333

@@ -46,28 +46,28 @@ public interface INodeLogger: ILogger
4646

4747
Any pre-existing <xref:Microsoft.Build.Framework.ILogger>-based loggers can act as central loggers and can attach to the build. However, central loggers written without explicit support for multi-processor logging scenarios and out-of-order events may break a build or produce meaningless output.
4848

49-
### Distributed Logging Model
49+
### Distributed logging model
5050
In the central logging model, too much incoming message traffic can overwhelm the central node, for example, when many projects build at the same time. This can stress system resources and decrease build performance. To ease this problem, [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)] supports a distributed logging model.
5151

5252
![Distributed Logging Model](../msbuild/media/distnode.png "DistNode")
5353

5454
The distributed logging model extends the central logging model by letting you create a forwarding logger.
5555

56-
#### Forwarding Loggers
56+
#### Forwarding loggers
5757
A forwarding logger is a secondary, lightweight logger that has an event filter that attaches to a secondary node and receives incoming build events from that node. It filters the incoming events and forwards only the ones that you specify to the central node. This reduces the message traffic that is sent to the central node and improves overall build performance.
5858

5959
There are two ways to use distributed logging, as follows:
6060

6161
- Customize the pre-fabricated forwarding logger named <xref:Microsoft.Build.BuildEngine.ConfigurableForwardingLogger>.
6262

6363
- Write your own custom forwarding logger.
64+
65+
You can modify ConfigurableForwardingLogger to suit your requirements. To do this, call the logger on the command line by using *MSBuild.exe*, and list the build events that you want the logger to forward to the central node.
66+
67+
As an alternative, you can create a custom forwarding logger. By creating a custom forwarding logger, you can fine-tune the behavior of the logger. However, creating a custom forwarding logger is more complex than just customizing the ConfigurableForwardingLogger. For more information, see [Creating forwarding loggers](../msbuild/creating-forwarding-loggers.md).
6468

65-
You can modify ConfigurableForwardingLogger to suit your requirements. To do this, call the logger on the command line by using MSBuild.exe, and list the build events that you want the logger to forward to the central node.
66-
67-
As an alternative, you can create a custom forwarding logger. By creating a custom forwarding logger, you can fine-tune the behavior of the logger. However, creating a custom forwarding logger is more complex than just customizing the ConfigurableForwardingLogger. For more information, see [Creating Forwarding Loggers](../msbuild/creating-forwarding-loggers.md).
68-
69-
## Using the ConfigurableForwardingLogger for Simple Distributed Logging
70-
To attach either a ConfigurableForwardingLogger or a custom forwarding logger, use the `/distributedlogger` switch (`/dl` for short) in an MSBuild.exe command-line build. The format for specifying the names of the logger types and classes is the same as that for the `/logger` switch, except that a distributed logger always has two logging classes instead of one, the forwarding logger and the central logger. The following is an example of how to attach a custom forwarding logger named XMLForwardingLogger.
69+
## Using the ConfigurableForwardingLogger for simple distributed logging
70+
To attach either a ConfigurableForwardingLogger or a custom forwarding logger, use the `/distributedlogger` switch (`/dl` for short) in an *MSBuild.exe* command-line build. The format for specifying the names of the logger types and classes is the same as that for the `/logger` switch, except that a distributed logger always has two logging classes instead of one, the forwarding logger and the central logger. The following is an example of how to attach a custom forwarding logger named XMLForwardingLogger.
7171

7272
```cmd
7373
msbuild.exe myproj.proj/distributedlogger:XMLCentralLogger,MyLogger,Version=1.0.2,Culture=neutral*XMLForwardingLogger,MyLogger,Version=1.0.2,Culture=neutral
@@ -76,7 +76,7 @@ msbuild.exe myproj.proj/distributedlogger:XMLCentralLogger,MyLogger,Version=1.0.
7676
> [!NOTE]
7777
> An asterisk (*) must separate the two logger names in the `/dl` switch.
7878
79-
Using the ConfigurableForwardingLogger is like using any other logger (as outlined in [Obtaining Build Logs](../msbuild/obtaining-build-logs-with-msbuild.md)), except that you attach the ConfigurableForwardingLogger logger instead of the typical [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)] logger and you specify as parameters the events that you want the ConfigurableForwardingLogger to pass on to the central node.
79+
Using the ConfigurableForwardingLogger is like using any other logger (as outlined in [Obtaining build logs](../msbuild/obtaining-build-logs-with-msbuild.md)), except that you attach the ConfigurableForwardingLogger logger instead of the typical [!INCLUDE[vstecmsbuild](../extensibility/internals/includes/vstecmsbuild_md.md)] logger and you specify as parameters the events that you want the ConfigurableForwardingLogger to pass on to the central node.
8080

8181
For example, if you want to be notified only when a build starts and ends, and when an error occurs, you would pass `BUILDSTARTEDEVENT`, `BUILDFINISHEDEVENT`, and `ERROREVENT` as parameters. Multiple parameters can be passed by separating them with semi-colons. The following is an example of how to use the ConfigurableForwardingLogger to forward only the `BUILDSTARTEDEVENT`, `BUILDFINISHEDEVENT`, and `ERROREVENT` events.
8282

@@ -107,5 +107,5 @@ msbuild.exe myproj.proj /distributedlogger:XMLCentralLogger,MyLogger,Version=1.0
107107
|NOSUMMARY|
108108
|SHOWCOMMANDLINE|
109109

110-
## See Also
111-
[Creating Forwarding Loggers](../msbuild/creating-forwarding-loggers.md)
110+
## See also
111+
[Creating forwarding loggers](../msbuild/creating-forwarding-loggers.md)

docs/msbuild/xdcmake-task.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,28 @@ manager: douge
2222
ms.workload:
2323
- "multiple"
2424
---
25-
# XDCMake Task
26-
Wraps the XML Documentation tool (xdcmake.exe), which merges XML document comment (.xdc) files into an .xml file.
25+
# XDCMake task
26+
Wraps the XML Documentation tool (*xdcmake.exe*), which merges XML document comment (*.xdc*) files into an *.xml* file.
2727

28-
An .xdc file is created when you provide documentation comments in your Visual C++ source code and compile by using the [/doc](/cpp/build/reference/doc-process-documentation-comments-c-cpp) compiler option. For more information, see [XDCMake Reference](/cpp/ide/xdcmake-reference), [XML Document Generator Tool Property Pages](/cpp/ide/xml-document-generator-tool-property-pages), and command-line help option (**/?**) for xdcmake.exe.
28+
An *.xdc* file is created when you provide documentation comments in your Visual C++ source code and compile by using the [/doc](/cpp/build/reference/doc-process-documentation-comments-c-cpp) compiler option. For more information, see [XDCMake reference](/cpp/ide/xdcmake-reference), [XML Document Generator Tool property pages](/cpp/ide/xml-document-generator-tool-property-pages), and command-line help option (**/?**) for *xdcmake.exe*.
2929

3030
## Remarks
31-
By default, the xdcmake.exe tool supports a few command-line options. Additional options are supported when you specify the **/old** command-line option.
31+
By default, the *xdcmake.exe* tool supports a few command-line options. Additional options are supported when you specify the **/old** command-line option.
3232

3333
## Parameters
3434
The following table describes the parameters of the **XDCMake** task.
3535

3636
|Parameter|Description|
3737
|---------------|-----------------|
38-
|**AdditionalDocumentFile**|Optional **String[]** parameter.<br /><br /> Specifies one or more additional .xdc files to merge.<br /><br /> For more information, see the **Additional Document Files** description in [XML Document Generator Tool Property Pages](/cpp/ide/xml-document-generator-tool-property-pages). Also see the **/old** and **/Fs** command-line options for xdcmake.exe.|
39-
|**AdditionalOptions**|Optional **String** parameter.<br /><br /> A list of options as specified on the command line. For example, "*/option1 /option2 /option#*". Use this parameter to specify options that are not represented by any other **XDCMake** task parameter.<br /><br /> For more information, see [XDCMake Reference](/cpp/ide/xdcmake-reference), [XML Document Generator Tool Property Pages](/cpp/ide/xml-document-generator-tool-property-pages), and command-line help (**/?**) for xdcmake.exe.|
40-
|**DocumentLibraryDependencies**|Optional **Boolean** parameter.<br /><br /> If `true` and the current project has a dependency on a static library (.lib) project in the solution, the .xdc files for that library project are included in the .xml file output for the current project.<br /><br /> For more information, see the **Document Library Dependencies** description in [XML Document Generator Tool Property Pages](/cpp/ide/xml-document-generator-tool-property-pages).|
41-
|**OutputFile**|Optional **String** parameter.<br /><br /> Overrides the default output file name. The default name is derived from the name of the first .xdc file that is processed.<br /><br /> For more information, see the **/out:**`filename` option in [XDCMake Reference](/cpp/ide/xdcmake-reference). Also see the **/old** and **/Fo** command-line options for xdcmake.exe.|
38+
|**AdditionalDocumentFile**|Optional **String[]** parameter.<br /><br /> Specifies one or more additional *.xdc* files to merge.<br /><br /> For more information, see the **Additional Document Files** description in [XML Document Generator Tool property pages](/cpp/ide/xml-document-generator-tool-property-pages). Also see the **/old** and **/Fs** command-line options for *xdcmake.exe*.|
39+
|**AdditionalOptions**|Optional **String** parameter.<br /><br /> A list of options as specified on the command line. For example, /\<option1> /\<option2> /\<option#>. Use this parameter to specify options that are not represented by any other **XDCMake** task parameter.<br /><br /> For more information, see [XDCMake reference](/cpp/ide/xdcmake-reference), [XML Document Generator Tool property pages](/cpp/ide/xml-document-generator-tool-property-pages), and command-line help (**/?**) for *xdcmake.exe*.|
40+
|**DocumentLibraryDependencies**|Optional **Boolean** parameter.<br /><br /> If `true` and the current project has a dependency on a static library (*.lib*) project in the solution, the *.xdc* files for that library project are included in the *.xml* file output for the current project.<br /><br /> For more information, see the **Document Library Dependencies** description in [XML Document Generator Tool property pages](/cpp/ide/xml-document-generator-tool-property-pages).|
41+
|**OutputFile**|Optional **String** parameter.<br /><br /> Overrides the default output file name. The default name is derived from the name of the first *.xdc* file that is processed.<br /><br /> For more information, see the **/out:\<filename>** option in [XDCMake reference](/cpp/ide/xdcmake-reference). Also see the **/old** and **/Fo** command-line options for *xdcmake.exe*.|
4242
|**ProjectName**|Optional **String** parameter.<br /><br /> The name of the current project.|
43-
|**SlashOld**|Optional **Boolean** parameter.<br /><br /> If `true`, enables additional xdcmake.exe options.<br /><br /> For more information, see the **/old** command-line option for xdcmake.exe.|
43+
|**SlashOld**|Optional **Boolean** parameter.<br /><br /> If `true`, enables additional *xdcmake.exe* options.<br /><br /> For more information, see the **/old** command-line option for *xdcmake.exe*.|
4444
|**Sources**|Required `ITaskItem[]` parameter.<br /><br /> Defines an array of MSBuild source file items that can be consumed and emitted by tasks.|
45-
|**SuppressStartupBanner**|Optional **Boolean** parameter.<br /><br /> If `true`, prevents the display of the copyright and version number message when the task starts.<br /><br /> For more information, see the **/nologo** option in [XDCMake Reference](/cpp/ide/xdcmake-reference).|
45+
|**SuppressStartupBanner**|Optional **Boolean** parameter.<br /><br /> If `true`, prevents the display of the copyright and version number message when the task starts.<br /><br /> For more information, see the **/nologo** option in [XDCMake reference](/cpp/ide/xdcmake-reference).|
4646
|**TrackerLogDirectory**|Optional **String** parameter.<br /><br /> Specifies the directory for the tracker log.|
4747

48-
## See Also
49-
[Task Reference](../msbuild/msbuild-task-reference.md)
48+
## See also
49+
[Task reference](../msbuild/msbuild-task-reference.md)

0 commit comments

Comments
 (0)