So I guess you are not looking into using MSBuild?
Because that also comes free with the .net SDK. Your Visual Studio projects are already MSBuild project files, so you can use these and modify them to make a complete integrated build.
To generate your ClickOnce deployment, you would then use the following MSBuild tasks:
- GenerateApplicationManifest
- GenerateDeploymentManifest
- Exec
- SignFile
Because of some issues I also need to run mage after these, eg to update the manifest and sign it, I use the Exec Task for this:
<!-- Correct the codebase property pointing to the application manifest file --><Exec Command=""$(SdkPath)bin\mage" -Update "$(DeploymentManifest)" -AppManifest "$(ApplicationManifest)"" WorkingDirectory="$(PublishDir)" /><!-- Signing the Deployment manifest --><Exec Command=""$(SdkPath)bin\mage" -Sign "$(DeploymentManifest)" -CertFile "$(SolutionRoot)\$(Branch)\Source\esamba.pfx" -Password esamba" WorkingDirectory="$(PublishDir)" />
^sorry, had to put everything on a single line to get it to display the xml.
I hope this helps you.