Change XML attribute value
Recipe ID
OpenRewrite.Xml.Recipes.ChangeXmlAttributeArtifactOpenRewrite.Recipes.CSharp.CoreChanges the value of attributes matching AttrName to NewValue.
Single recipeProprietary
Usage
You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe OpenRewrite.Xml.Recipes.ChangeXmlAttribute --recipe-option "AttrName=<AttrName>" --recipe-option "NewValue=<NewValue>"If the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.CoreOptions
| Name | Type | Description |
|---|---|---|
AttrNamerequired | String | The attribute name to match |
NewValuerequired | String | The new attribute value |