I have a ClickOnce application that relies on delay signed (with .pfx) assemblies. I currently rely on the Publish target of my project to create my ClickOnce deployment and would like to keep it that way if possible (avoid mage).
My problem is that the packaged assemblies are still delay signed because when publish runs I haven't had the chance to run "sn -Rc ...". Is there a way to hook into the Publish target to sign my assemblies after it builds/rebuilds. I could also sign the assemblies before the publish if publish didn't trigger a build.
Any suggestions?
Some leads that I'm not sure how to pursue: - sign assemblies in the .deploy files - re use the .manifest and .application files generated by the publish target to create new deployment with signed assemblies
In summary: How can I re use (with or without mage) the .manifest/.application generated by the publish target to create a new deployment? Same files, some slightly different.
Thanks, Benoit
Just curious, what's your problem with using mage? This is what it's designed to do, and it's easy to re-sign your deployment. Here is an article showing how to do that.
If you don't want to use mage, you can check out the MMU application that Patterns and Practices provides, it's here: You can look at the code for this; it creates the deployment package programmatically.
Publish always does a build, there's nothing you can do to stop it (many have tried!).
If you want to add files to your deployment after creating the publishing package, check out "option 2" on the bottom of this page. IIRC, "Automatic" means using MMU; manual means using Mage or MageUI.