Mage.exe创建一个无效的清单 [英] Mage.exe creates an invalid manifest

查看:84
本文介绍了Mage.exe创建一个无效的清单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我使用Visual Studio创建一个ClickOnce包,一切正常 - 我可以成功部署它。但是,如果我使用mage.exe创建包(我完全遵循Microsoft发布的说明),当我启动MyClientApp.application时出现此错误:

I create a ClickOnce package using Visual Studio and everything works fine - I can deploy it successfully. However, if I create the package using mage.exe (I follow exactly the instructtions published by Microsoft) I get this error when i launch MyClientApp.application:


----------------------------------------------- -------------------------------------------------- -----------------

------------------------------------------------------------------------------------------------------------------


以下是错误摘要,这些错误的详细信息稍后列在日志中。 *激活C:\ Deploy \ MyClientApp.application导致异常。检测到以下失败消息:+来自  file:/// C:/Deploy/1.7.0.12/MyClientApp.exe.manifest的异常读取清单:
清单可能无效或无法打开文件。 +清单的解析和DOM创建导致错误。解析后发现错误:  -HRESULT:0x80070c81起始行:0开始列:0主机文件:  +例外来自HRESULT的
:0x80070C81

Below is a summary of the errors, details of these errors are listed later in the log. * Activation of C:\Deploy\MyClientApp.application resulted in exception. Following failure messages were detected: + Exception reading manifest from file:///C:/Deploy/1.7.0.12/MyClientApp.exe.manifest: the manifest may not be valid or the file could not be opened. + Parsing and DOM creation of the manifest resulted in error. Following parsing errors were noticed:  -HRESULT: 0x80070c81 Start line: 0 Start column: 0 Host file:  + Exception from HRESULT: 0x80070C81


------------------- -------------------------------------------------- ---------------------------------------------

------------------------------------------------------------------------------------------------------------------


创建清单时,mage.exe会抛出一些有关具有相同标识的程序集的警告,但在流程结束时声明清单已成功创建。不知道这些警告是错误还是警告只是警告。

While creating the manifest, mage.exe throws a couple of warnings about assemblies with same identity, but in the end of the process claims that the manifest is created successfully. Not sure if these warnings are errors or just warnings as mage says.


警告MSB3112 :两个或多个程序集具有相同的标识'Microsoft.Practi


ces.EnterpriseLibrary.Logging,Version = 2.0.0.0,Culture = neutral,ProcessorArchit


< span style =""> ecture = msil'。



清单位于指定的位置。我不编辑它,它正是由mage.exe创建的。它似乎格式正确。我将它与VS创建的另一个进行比较,它看起来很好(虽然不一样)。我使用mage.exe的
的原因是我想要包含在部署包文件中(而不是"数据"文件) )我不想在Windows应用程序中引用。



我想知道Visual Studio是如何做的那样VS使用幕后的mage.exe




谢谢。

推荐答案

你好Jeff Wei,

Hi Jeff Wei,

感谢您在此发布。

此论坛是关于MSBuild的(讨论Microsoft构建引擎又名MSBuild。主题包括:MSBuild的用法通过任务,记录器和托管来构建自定义和MSBuild可扩展性。)
因为您的问题与Clickonce更相关,我们帮助您将其移至正确的论坛以获得更好的支持。

This forum is about the MSBuild (Discuss the Microsoft build engine aka MSBuild. Topics including: usage of MSBuild, build customization, and MSBuild extensibility via tasks, loggers and hosting.) as your issue is more related to the Clickonce, we help you move it to correct forum for better support.

如果您有一些MSBuild问题,请随时与我们联系。我们将尽力为您提供解决方案。

If you have some MSBuild questions, please feel free to contact us. We will try our best to give you a solution.

感谢您的理解与合作。


这篇关于Mage.exe创建一个无效的清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆