Uh oh!
There was an error while loading. Please reload this page.
Add XmlAdd extension to XmlTasks - #489
Conversation
1e390a1 to
5c0bd19Compare59c3adb to
e47d38cCompareThere was a problem hiding this comment.
Pull request overview
Adds a new XmlTasks.XmlAdd API plus a small fluent XmlElementBuilder to make inserting XML nodes (e.g., updating nuget.config feeds) more convenient within Fallout’s XML utilities.
Changes:
- Add
XmlTasks.XmlAdd(...)overloads to append new XML content at an XPath location. - Introduce
XmlElementBuilderfor fluent construction ofXElementtrees. - Add specs + Verify snapshot covering common and “real world”
nuget.configusage.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| tests/Fallout.Common.Specs/XmlTasksSpecs.cs | Adds specs for XmlAdd (builder + string) and XmlElementBuilder behaviors, plus a Verify-based nuget.config scenario. |
| tests/Fallout.Common.Specs/XmlTasksSpecs.A_real_world_use_case.verified.txt | Snapshot for expected pretty-printed output after adding a package source. |
| src/Fallout.Common/IO/XmlTasks.cs | Adds XmlAdd, refactors saving into Save, and adjusts some method formatting. |
| src/Fallout.Common/IO/XmlElementBuilder.cs | New fluent builder for producing XElement instances used by XmlAdd and tests. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
f866458 to
878bef9Compare878bef9 to
8e634f2Compare# Conflicts: # tests/Fallout.Common.Specs/XmlTasksSpecs.cs
8e634f2 to
8fe11b9CompareIT-VBFK
commented
Jul 13, 2026
Out of curiosity... how many approvals do we seek before merging? |
Uh oh!
There was an error while loading. Please reload this page.
8eb4259 to
a17f2c3Comparea17f2c3 to
8ef16e5CompareUh oh!
There was an error while loading. Please reload this page.
Closes#488
Adds an additional
XmlElementBuilderfor convenient node building