Move Task

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see Move Task on Moves files to a new location.

The folowing table describes the parameters of the Move task.

DestinationFilesOptional ITaskItem[] output parameter.

Specifies the list of files to move the source files to. This list is expected to be a one-to-one mapping to the list that is specified in the SourceFiles parameter. That is, the first file specified in SourceFiles will be moved to the first location specified in DestinationFiles, and so forth.
DestinationFolderOptional ITaskItem parameter.

Specifies the directory to which you want to move the files.
MovedFilesOptional ITaskItem[] output parameter.

Contains the items that were successfully moved.
OverwriteReadOnlyFilesOptional Boolean parameter.

If true, overwrites files even if they are marked as read-only files.
SourceFilesRequired ITaskItem[] parameter.

Specifies the files to move.

Either the DestinationFolder parameter or the DestinationFiles parameter must be specified, but not both. If both are specified, the task fails and an error is logged.

In addition to having the parameters that are listed in the table, this task inherits parameters from the TaskExtension class, which itself inherits from the Task class. For a list of these additional parameters and their descriptions, see TaskExtension Base Class.

Task Reference