问题
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