We use MageUI.exe to manually create different versions of our ClickOnce deployment for development, test and production. We change the Publisher in order to have the program icon appear in a separate folder of the Start Menu. We use the MageUI.exe version in the Microsoft Windows SDK for Windows 7 and .NET Framework 4 (AKA Microsoft Windows SDK 7.1). This version shows 4.0.30319.1 as its version number.
Our .application-files contain a <compatibleFrameworks>
element, which is needed for .NET 4.0 deployments.
Normally, when we modify the .application file and save it, the <compatibleFrameworks>
element remains untouched. So far so good.
But... when we save the file twice, the <compatibleFrameworks>
element is suddenly removed from the .application-file!
This seems like a very strange bug to me. Why would MageUI.exe do something else when you save twice?!
Update
Assuming this is a bug, I've also reported it to Microsoft.
Update 2
Unfortunately, Microsoft won't fix it.
(This question is similar to MageUI.exe is not including a compatibleFrameworks element but not exactly.)