Sure.
But keep in mind that modifying XML the way you did is not a "dirty trick". It is a legitimate approach handling the situations when you need to access optional WiX attributes not covered by Wix#. And it does not have to be heavy :) Thus your example can be as expressed light as follows:
Nevertheless I consider MigrateFeatures to be a useful one and will add it to the next release.
Txs for feedback.
But keep in mind that modifying XML the way you did is not a "dirty trick". It is a legitimate approach handling the situations when you need to access optional WiX attributes not covered by Wix#. And it does not have to be heavy :) Thus your example can be as expressed light as follows:
Compiler.WixSourceGenerated += document => document.Root .Select("Product/Upgrade/UpgradeVersion") .AddAttributes("MigrateFeatures=yes");
Txs for feedback.