AssignTargetPath Task


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

For the latest documentation on Visual Studio 2017, see AssignTargetPath Task on This task accepts a list files and adds <TargetPath> attributes if they are not already specified.

The following table describes the parameters of the AssignTargetPath task.

RootFolderOptional string input parameter.

Contains the path to the folder that contains the target links.
FilesOptional ITaskItem[] input parameter.

Contains the incoming list of files.

 ITaskItem [] output parameter.

Contains the resulting list of files.

In addition to the parameters listed above, 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.

The following example executes the AssignTargetPath task to configure a project.

<Project xmlns="">  
    <Target Name="MyProject">  
            <Output TaskParameter="AssignedFiles"  

Task Reference