AssignTargetPath task
This task accepts a list of files and adds <TargetPath>
attributes if they are not already specified.
Task parameters
The following table describes the parameters of the AssignTargetPath
task.
Parameter | Description |
---|---|
RootFolder |
Optional string input parameter.Contains the path to the folder that contains the target links. |
Files |
Optional ITaskItem[] input parameter.Contains the incoming list of files. |
AssignedFiles |
Optional ITaskItem [] output parameter.Contains the resulting list of files. |
Remarks
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.
Example
The following example executes the AssignTargetPath
task to configure a project.
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="MyProject">
<AssignTargetPath
RootFolder="Resources"
Files="@(ResourceFiles)"
<Output TaskParameter="AssignedFiles"
ItemName="OutAssignedFiles"/>
</AssignTargetPath>
</Target>
</Project>
See also
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru