How can I customize registration-free COM manifests generated by Visual Studio?
I'm trying to deploy an .NET application with a custom COM component through ClickOnce. Unfortunately the application does not work with manifests generated by Visual Studio to use the COM component in registration-free mode. After a couple of tries I figured out changes were required in the manifest. I need to add a <comInterfaceExternalProxyStub> element to the manifest that gets generated by setting Isolated=True in the prope开发者_Go百科rties of a COM reference.
I can do this change manually and then re-sign the ClickOnce manifests with mage in the correct order and the application works. But I'd like to streamline this process, so that the next guy can deploy the application without going through that.
Ideally, I could simply edit some settings in Visual Studio, or manually change the MSBuild project files to have this change made. If that's not possible, I guess I'll have to write a script that makes the change and include it as a post-build step or something.
Is there a way to automate this modification for future deployments?
精彩评论