What’s the best way to create ClickOnce deployments,
Our team develops distributed winform apps. We use ClickOnce for deployment and are very pleased with it.
However, we’ve found the pain point with ClickOnce is in creating the deployments. We have the standard dev/test/production environments and need to be able to create deployments for each of these that install and update separate from one another. Also, we want control over what assemblies get deployed. Just because an assembly was compiled doesn’t mean we want it deployed.
The obvious first choice for creating deployments is Visual Studio. However, VS really doesn’t address the issues stated. The next in line is the SDK tool, Mage. Mage works OK but creating deployments is rather tedious and we don’t want every developer having our code signing certificate and password.
What we ended up doing was rolling our own deployment app that uses the command line version of Mage to create the ClickOnce manifest files.
I’m satisfied with our current solution but is seems like there would be an industry-wide, accepted approach to this problem. Is there?
I would look at using It has built in for handling clickonce deployments. I included some references which will help you get started, if you want to go down this path. It is what I use and I have found it to fit my needs. With a good build process using msbuild, you should be able to accomplish squashing the pains you have felt.
Here is on how ClickOnce manifest generation works with MsBuild.
That’s the answer What’s the best way to create ClickOnce deployments, Hope this helps those looking for an answer. Then we suggest to do a search for the next question and find the answer only on our site.
The answers provided above are only to be used to guide the learning process. The questions above are open-ended questions, meaning that many answers are not fixed as above. I hope this article can be useful, Thank you