Mitch Wheat gave an excellent answer, and if you are just starting out with the Magician, read the last link he gives!
I wanted to share some real code to give others help on ClickOnce projects. I found that using MSBUILD from the command line to “create” a deployment is ideal for the automatic build process. I never run the publishing wizard from Visual Studio. Although, I specify almost all the information on the Publish tab in VS, so I do not need to do this from the command line. For example, "Application Files" is that I do not know how to do this on the command line.
THEN after the application is successfully deployed to the server ... I use "Magician" as part of my ClickOnce deployment migration from one server to another (for example, Testing-> Staging-> Production)
For example (a PowerShell script that creates your solution executed from a CruiseControl job):
&"$Env:windir\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe" "C:\Projects\MyCoolApp.sln" /t:clean /t:publish /p:Configuration=Release /p:ApplicationRevision=$Env:CCNETLABEL /p:PublishDir="\\TestServer\MyCoolAppFolder/" /p:PublishUrl="\\TestServer\MyCoolAppFolder/"
Then, when you want to port the ClickOnce application from "TestServer" to "QAServer" or "Staging" or "Production" ... you need to write a complex script to do this. Here is what I came up with:
Lee grissom
source share