简体   繁体   English

Azure DevOps 发布管道上的 ClickOnce 部署

[英]ClickOnce deployment on Azure DevOps release pipeline

我正在尝试在 Azure DevOps 发布管道上创建 ClickOnce 部署我创建签名、清单、应用程序、使用证书部署文件但是我如何创建 exe 和安装文件(通过 Azure DevOps 发布管道)

But how can I create the exe and setup file (via Azure DevOps release pipeline)但是如何创建 exe 和安装文件(通过 Azure DevOps 发布管道)

Check document Build ClickOnce applications from the command line : Msbuild has Publish target to build and publish the ClickOnce application. 从命令行检查文档构建 ClickOnce 应用程序:Msbuild 具有Publish目标来构建和发布 ClickOnce 应用程序。 It will generate the setup.exe you want.它将生成您想要的setup.exe See similar hint here .请参阅此处的类似提示。

And all above is about doing that in local machine, to do similar job in release pipeline you can use msbuild task or Visual Studio Task with Publish target( /t:Publish as argument).以上所有内容都是关于在本地机器上执行此操作,要在发布管道中执行类似的工作,您可以使用msbuild 任务Visual Studio 任务Publish目标( /t:Publish作为参数)。

Then you'll get one app.publish folder where the files you want exist there:然后你会得到一个app.publish文件夹,你想要的文件在那里:

在此处输入图片说明

This folder can be used for your further deployment.此文件夹可用于您的进一步部署。

In addition:此外:

If you meet error like Unable to find manifest signing certificate in the certificate store , please check the suggestions in this issue .如果您遇到诸如Unable to find manifest signing certificate in the certificate store类的错误,请查看此问题中的建议。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM