In a directory with the file me.wxs from the repo above (can be any wxs file which needs formatting, I think)
Command wix format me.wsx
Actual Result
See messages appearing (shown below)
A file InMemoryXml appears (this appears to be the correctly formatted version of me.wxs)
File me.wxs is not changed
InMemoryXml(1) : information WIX0005: [Converted] This file contains an XML declaration on the first line. (DeclarationPresent)
InMemoryXml(2) : information WIX0002: [Converted] The whitespace preceding this comment is incorrect. (WhitespacePrecedingNodeWrong)
InMemoryXml(3) : information WIX0002: [Converted] The whitespace preceding this comment is incorrect. (WhitespacePrecedingNodeWrong)
InMemoryXml(4) : information WIX0003: [Converted] The whitespace preceding this end element is incorrect. (WhitespacePrecedingEndElementWrong)
InMemoryXml : information WIX0005: [Converted] This file contains an XML declaration on the first line. (DeclarationPresent)
InMemoryXml : information WIX0002: [Converted] The whitespace preceding this comment is incorrect. (WhitespacePrecedingNodeWrong)
InMemoryXml : information WIX0002: [Converted] The whitespace preceding this comment is incorrect. (WhitespacePrecedingNodeWrong)
InMemoryXml : information WIX0003: [Converted] The whitespace preceding this end element is incorrect. (WhitespacePrecedingEndElementWrong)
Expected Result
File me.wxs to be changed in-place
No extra files appearing
Acknowledgements
[X] I acknowledge that this is a fully completed bug report. It is not a question or attempt to get help debugging my issue (because those should be sent to Discussions).
WiX Version
5.0.0+41e11442
.NET or MSBuild or Visual Studio Version
8.0.204
HeatWave Version
N.A
Windows Version
Win11 22H2
Repro Repo
https://github.com/pedro-w/wix-format
Repro Steps
me.wxs
from the repo above (can be any wxs file which needs formatting, I think)wix format me.wsx
Actual Result
InMemoryXml
appears (this appears to be the correctly formatted version ofme.wxs
)me.wxs
is not changedExpected Result
me.wxs
to be changed in-placeAcknowledgements