I am trying to use Azure Build Pipeline to create a ClickOnce deployment package, with a Publish.htm file. To do this from the command line, I searched for how this is done and came across this Microsoft document Build ClickOnce applications from the command line. This is what I've got in my Azure build Pipeline:
- task: VSBuild@1
inputs:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
msbuildArgs: '/target:publish
/p:ApplicationRevision=$(Build.BuildId)'
I thought the msbuildArgs: /target:publish would do the job. But it doesn't look that way. In the artifacts I have an app.publish folder in the bin/Release folder. But there's no Publish.htm file there. Nor anywhere else I could find.
Have I misunderstood how to go about creating a ClickOnce deployment that generates a Publish.htm file, with associated ClickOnce directory structure so users can install the app by clicking a link?