New XML elements include alias
I'm trying to update an custom TrafficMandatoryFiles element in a TFS 2008 TFSBuild.proj file that's using a namespace as shown below.
I defined an alias as "msbuild" and update the element using "msbuild:Project/msbuild:PropertyGroup/msbuild:TrafficMandatoryFiles" in the XPath which works fine. My issue is that if the element doesn't exist and it has to add it, it's added with the alias as which is technically accurate but confusing to novices (like me) to read. I can clean it up with a Replace in File action but wondered if there's anything I can do in the XML action to prevent it? While I'm asking, is there any way to keep the Write XML action from making style changes (indentation, white space, in-line comments). It makes a real mess out of multiline elements and comments that were added with leading spaces instead of tabs. Thanks, Tom |
That's not currently possible in the Write XML action, but we'll look into it, as well as supporting the preserveWhiteSpace property.
|
These are now supported in v8.5.
|
All times are GMT -5. The time now is 07:03 PM. |
Copyright © 1999-2023 Kinook Software, Inc.