question

RodAtWork avatar image
0 Votes"
RodAtWork asked RodAtWork edited

Why is it that my Azure Build Pipeline didn't create a Publish.htm file?

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?





not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DSPatrick avatar image
0 Votes"
DSPatrick answered RodAtWork edited

Devops / TFS is not currently supported here on QnA. The product group for Azure DevOps / TFS actively monitors questions over at
https://developercommunity.visualstudio.com/report?space=21&entry=problem
https://developercommunity.visualstudio.com/report?space=22&entry=problem

--please don't forget to upvote and Accept as answer if the reply is helpful--


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Excuse me, but I thought I had asked this question in the Visual Studio group. The fact that I brought up Azure Pipelines is incidental. I'm interested in what the correct parameter is I should use for MSBUILD, to generate a Publish.htm file. Why is it that using what in essence is:

MSBUILD /target:publish

did not create the Publish.htm file?

0 Votes 0 ·