Publish ClickOnce App Using MSBuild

I need to use MSBuild to publish a ClickOnce application for multiple PublishDir (s). I have four environments (dev, qa, model, prod) and you need to create a separate ClickOnce PublishDir (s) file for each, because the configuration files are different. One of the main problems is that MSBuild does not create publish.htm file. Any help would be appreciated.

+5
source share
3 answers

How, as a one-time thing, manually create publish.htm files in four places?

In my company, we do not use the publish.htm file at all. But we have different environments, so we allow the build-script to change the application name, update location, pre-build uri, etc., and also create it using the target Publish . Then the output files are copied to the location of the appropriate environment.

We are a bit old and do this mainly in the cmd file, but I'm sure you can have 4 different msbuild objects that do the same job.

+5
source

I just wrote the answer to publish.html problem, in the next couple of days I will talk about the problem with several environments.

http://wallism.wordpress.com/2009/12/08/clickonce-creating-publish-page-from-msbuild/

+7
source

All Articles