MageUI.exe removes compatibleFrameworks element

2019-07-21 08:51发布

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.)

1条回答
迷人小祖宗
2楼-- · 2019-07-21 09:16

Try using the version of mageui that is specifically provided for the .NET 4 Framework.

It is here:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools
or here:
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools

查看更多
登录 后发表回答