How do I move an embedded manifest to external .manifest file?

喜夏-厌秋 提交于 2019-12-11 08:24:20

问题


I have an existing C# application that has a manifest file which is embedded into the exe. How do I change this to use an external manifest that will be included in the setup.msi?

I can only see options (in the Project Properties) to create the application without a manifest, or to embed one.


回答1:


In solution explorer, try changing the Build Action for the manifest to Content.




回答2:


Use the MT utility (part of Visual Studio) to manipulate manifest files.

From the online help:

> To extract manifest out of a dll:
mt.exe -inputresource:dll_with_manifest.dll;#1 -out:extracted.manifest


来源:https://stackoverflow.com/questions/5006585/how-do-i-move-an-embedded-manifest-to-external-manifest-file

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