Sets an attribute value for an element. If the attribute does not exist, it will be created.
Example Usage:
<SetXmlElementAttribute XmlFile="$(MSBuildProjectDirectory)\$(OutputPath)Test.xml"
Name="Project" XPath="/Project/Import[1]"
Value="$(MSBuildExtensionsPath)\MSBuildExtendedTasks\MSBuild.Extended.Tasks.Targets"
/> | Attribute | Description | Required | Type | Direction |
| Name | The name of the attribute to set \ create | True | String | Input |
| NamespaceURI | The namespace URI of the attribute | False | String | Input |
| Prefix | The namespace prefix for the attribute | False | String | Input |
| XmlFile | The path and file name to the xml document | True | String | Input |
| XPath | The XPath used to locate the element which the attribute should be set to. | True | String | Input |
| Value | The value to assign to the attribute | False | String | Input |