如何使用 Azure Devops 中的 CI 构建生成安装(.msi 或 exe)文件? [英] How to generate setup (.msi or exe) file with the CI build in Azure Devops?

查看:82
本文介绍了如何使用 Azure Devops 中的 CI 构建生成安装(.msi 或 exe)文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 VS2019 上使用 VS Installer 扩展为 .Net windows 应用程序创建了一个新的安装项目.设置在本地机器上创建得很好,我可以在应用程序服务器上安装设置.但是当我签入安装项目时,只有 setup.vdproj 文件出现在 Azure DevOps 的存储库中.我也希望在 Azure DevOps 中生成安装程序,以便我只能从 Azure DevOps 下载安装程序.请让我知道我实际上需要做些什么来确保也在 Azure DevOps(或其构建服务器)上创建设置.我附上了 CI,Release build Pipeline 的截图.提前致谢 !

解决方案

你必须

I have created a new setup project using VS Installer extension on my VS2019 for .Net windows application. The setup is getting created well on the local machine and I'm able to install the setup on application server . But when I check-in the setup project only setup.vdproj file is appearing in the repository on Azure DevOps . I want setup to be generated in Azure DevOps too , So that I can download the setup from Azure DevOps only . Please let me know what actually I need to do to make sure that setup is also created on Azure DevOps(or it's build server) . I'm attaching a screenshot of CI,Release build Pipeline . Thanks in Advance !

解决方案

You have to configure your own build agent to run the build since Visual Studio Installer Projects extension is not installed on the Microsoft-Hosted Agent.

Make sure the VS Installer Projects extension is installed on your own build agent machine and then you can build the setup project using command line task with devenv command.

这篇关于如何使用 Azure Devops 中的 CI 构建生成安装(.msi 或 exe)文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆