MageUI.exe is not including a compatibleFrameworks element

梦想与她 提交于 2019-12-20 02:31:43

问题


I've got a ClickOnce .NET 4 application deployed by Visual Studio 2010, via a UNC path. I open the .application file, change the startup location to use the HTTP address, sign, and close. The application then gives this error:

Application manifest does not accept specification of <compatibleFrameworks>.

How do I get MageUI.exe to include this needed element when I sign?

This is similar to Stack Overflow question Why does Mage.exe not generate a compatibleFrameworks attribute?.

I've tried opening MageUI from the location suggested, to no avail, and I'd really rather not have to use MSBuild. This is a simple application, and I'd much prefer Visual Studio's simple built-in deployment.

Also, in case anyone's wondering, I can't deploy via HTTP through Visual Studio, because that requires FrontPage extensions to be installed, among other reasons.


回答1:


Try using the MageUI.exe version from the .NET 4 folder, which is in:

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

By the way, you can set the publishing file location to the UNC share path and the installation URL to your HTTP address and THEN publish. It will put the files on the share, but the installation URL will be set. If that's all you're changing, that would be easier all the way around.

Also, just FYI, you can publish with FTP (publishing a file location is something like ftp://myserver/myfolder/) if you don't want (or can't) to install the FPSE.



来源:https://stackoverflow.com/questions/3471194/mageui-exe-is-not-including-a-compatibleframeworks-element

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!