How to create clickonce deployment package for Dot net widnows application using build.cake?

145 Views Asked by At

Is there way to handle dot net clickonce publish using cake file instead of publish wizard?

1

There are 1 best solutions below

0
Nils On

Cake does not do this, MSBuild does. Cake only starts MSBuild using the required parameters.

Assuming you have set up your project to be deployed as a ClickOnce application, the deployment can be started from the command line using msbuild /t:publish /p:PublishProfile=<pubxml file> /p:PublishDir="<specific location>". (See the docs, here.)

Hence, if you can publish from the command line as described above, you can use DotNetPublish in Cake to start the publish process.