Skip to content

Commit 2f947bf

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
authored andcommitted
Merging changes synced from https://github.com/MicrosoftDocs/visualstudio-docs-pr (branch live)
2 parents a557748 + 93ca4fb commit 2f947bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/msbuild/task-writing.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ A task should not depend on any relative order of parameter-property setter invo
165165

166166
The MSBuild natively handles properties of type `string`, `bool`, `ITaskItem` and `ITaskItem[]`. If a task accepts a parameter of a different type, MSBuild invokes <xref:System.Convert.ChangeType%2A> to convert from `string` (with all property and item references expanded) to the destination type. If the conversion fails for any input parameter, MSBuild emits an error and does not call the task's `Execute()` method.
167167

168+
## Packaging the task
169+
170+
The recommended way to distribute a task is in a NuGet package. The package needs to bundle all dependencies. This topic is explained thoroughly in a tutorial that walks you through creating a custom task. See [Create a NuGet package](tutorial-custom-task-code-generation.md#create-a-nuget-package).
171+
168172
## Example 1
169173

170174
### Description

0 commit comments

Comments
 (0)