Skip to content

Commit 59d61fe

Browse files
committed
fix various issues
1 parent a343563 commit 59d61fe

6 files changed

+7
-9
lines changed

docs/msbuild/msbuild-best-practices.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ We recommend the following best practices for writing MSBuild scripts:
2424
</MyProperty>
2525
```
2626

27-
- Any custom `.props` files should be simple and single-purpose, and `.props` files should not include other `.props` files.
28-
29-
The only exception to this is *Directory.Build.props*. Because property values can be overridden, the value at any time in the process depends on the order in which MSBuild processes a script. It can be difficult to trace why property values have the values they do at various stages in the build process, and this practice helps you more easily diagnose such issues.
27+
- Any custom `.props` files should be simple and single-purpose, and `.props` files should not include other `.props` files. The only exception to this is *Directory.Build.props*. Because property values can be overridden, the value at any time in the process depends on the order in which MSBuild processes a script. It can be difficult to trace why property values have the values they do at various stages in the processing of an MSBuild script, and this practice helps you more easily diagnose such issues.
3028

3129
## See also
3230

docs/msbuild/msbuild-project-file-schema-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The schema link in an MSBuild project file is not required in Visual Studio 2017
5050
|[Target element (MSBuild)](../msbuild/target-element-msbuild.md)|OnError<br /><br /> *Task*|AfterTargets<br /><br /> BeforeTargets<br /><br /> Condition<br /><br /> DependsOnTargets<br /><br /> Inputs<br /><br /> KeepDuplicateOutputs<br /><br /> Name<br /><br /> Outputs<br /><br /> Returns|
5151
|[Task element of Target (MSBuild)](../msbuild/task-element-msbuild.md)|Output|Condition<br /><br /> ContinueOnError<br /><br /> *Parameter*|
5252
|[Task element of UsingTask (MSBuild)](../msbuild/taskbody-element-msbuild.md)|*Data*|Evaluate|
53-
|[UsingTask element (MSBuild)](../msbuild/usingtask-element-msbuild.md)|ParameterGroup<br /><br /> TaskBody|AssemblyFile<br /><br /> AssemblyName<br /><br /> Condition<br /><br /> TaskFactory<br /><br /> TaskName|
53+
|[UsingTask element (MSBuild)](../msbuild/usingtask-element-msbuild.md)|ParameterGroup<br /><br /> Task|AssemblyFile<br /><br /> AssemblyName<br /><br /> Condition<br /><br /> TaskFactory<br /><br /> TaskName|
5454
|[When element (MSBuild)](../msbuild/when-element-msbuild.md)|Choose<br /><br /> ItemGroup<br /><br /> PropertyGroup|Condition|
5555

5656
## See also

docs/msbuild/parameter-element.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Contains information about a specific parameter for a task that is generated by
6969
...
7070
</ParameterGroup>
7171
<Task Evaluate="true">
72-
... Task factory-specific data ...
72+
... Task factory-specific data ...
7373
</Task>
7474
</UsingTask>
7575
```

docs/msbuild/parametergroup-element.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Contains an optional list of parameters that will be present on the task that is
6363
...
6464
</ParameterGroup>
6565
<Task Evaluate="true">
66-
... Task factory-specific data ...
66+
... Task factory-specific data ...
6767
</Task>
6868
</UsingTask>
6969
```

docs/msbuild/taskbody-element-msbuild.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Contains the data that is passed to a `UsingTask` `TaskFactory`. For more inform
2828
## Syntax
2929

3030
```xml
31-
<TaskBody Evaluate="true/false" />
31+
<Task Evaluate="true/false" />
3232
```
3333

3434
## Attributes and elements
@@ -65,7 +65,7 @@ Contains the data that is passed to a `UsingTask` `TaskFactory`. For more inform
6565
...
6666
</ParameterGroup>
6767
<Task Evaluate="true">
68-
... Task factory-specific data ...
68+
... Task factory-specific data ...
6969
</Task>
7070
</UsingTask>
7171
```

docs/msbuild/usingtask-element-msbuild.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Maps the task that is referenced in a [Task](../msbuild/task-element-msbuild.md)
4848
|---------------|-----------------|
4949
|`AssemblyName`|Either the `AssemblyName` attribute or the `AssemblyFile` attribute is required.<br /><br /> The name of the assembly to load. The `AssemblyName` attribute accepts strong-named assemblies, although strong-naming is not required. Using this attribute is equivalent to loading an assembly by using the <xref:System.Reflection.Assembly.Load%2A> method in .NET.<br /><br /> You cannot use this attribute if the `AssemblyFile` attribute is used.|
5050
|`AssemblyFile`|Either the `AssemblyName` or the `AssemblyFile` attribute is required.<br /><br /> The file path of the assembly. This attribute accepts full paths or relative paths. Relative paths are relative to the directory of the project file or targets file where the `UsingTask` element is declared. Using this attribute is equivalent to loading an assembly by using the <xref:System.Reflection.Assembly.LoadFrom%2A> method in .NET.<br /><br /> You cannot use this attribute if the `AssemblyName` attribute is used.|
51-
|`TaskFactory`|Optional attribute.<br /><br /> Specifies the class in the assembly that is responsible for generating instances of the specified `Task` name. The user may also specify a `TaskBody` as a child element that the task factory receives and uses to generate the task. The contents of the `TaskBody` are specific to the task factory.|
51+
|`TaskFactory`|Optional attribute.<br /><br /> Specifies the class in the assembly that is responsible for generating instances of the specified `Task` name. The user may also specify a `Task` as a child element that the task factory receives and uses to generate the task. The contents of the `Task` are specific to the task factory.|
5252
|`TaskName`|Required attribute.<br /><br /> The name of the task to reference from an assembly. If ambiguities are possible, this attribute should always specify full namespaces. If there are ambiguities, MSBuild chooses an arbitrary match, which could produce unexpected results.|
5353
|`Condition`|Optional attribute.<br /><br /> The condition to evaluate. For more information, see [Conditions](../msbuild/msbuild-conditions.md).|
5454

0 commit comments

Comments
 (0)