当我拥有WPF应用程序时,该如何处理Azure版本? [英] What would I do with Azure Releases when I have a WPF application?

查看:44
本文介绍了当我拥有WPF应用程序时,该如何处理Azure版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我只是在构建WPF应用程序,是否会有Azure发布的目的?

Would there be a purpose of Azure Releases if I'm just building a WPF application?

在Azure构建中,我只能使用复制任务将输出文件复制到放置位置,对吗?

In Azure Builds I can just use a Copy task to copy the output files to a drop location, right?

推荐答案

当我拥有WPF应用程序时,该如何处理Azure版本?

What would I do with Azure Releases when I have a WPF application?

实际上,在构建/部署WPF应用程序时,我们可以仅使用复制任务将输出文件复制到放置位置.

Indeed, we could just use a Copy task to copy the output files to a drop location when we build/deploy the WPF application.

但是,在这种情况下,如果必须将WPF应用程序部署到多个阶段/机器,则可能需要再添加一个复制任务来复制输出文件.另外,如果每个阶段/机器的情况不同,我们可能无法仅使用复制任务来完成部署.现在,我们可以将Azure版本用于多个阶段,例如Dev,Test,Product等.一个阶段对应于一个环境或一台机器,并且每个环境或一台机器都可以分别设置.

However, if we have to deploy the WPF application to multiple stages/machines, in this case, we may need add one more copy task to copy the output files. In addition, if the situation of each stages/machines is different, we may not be able to use only the copy task to complete the deployment. Now, we could use the Azure Release with multiple stages, like Dev, Test, Product and so on. one stage corresponds to an environment or machine, and each environment or machine can be set individually.

另一方面,如果我们使用复制任务复制输出文件以部署WPF应用程序,则每次启用CI时,都会将WPF应用程序部署到目标计算机.显然,并非我们要部署到目标计算机的所有修改.因此,我们需要一个发布管道来分离我们的构建和部署.

On the other hand, if we use a copy task to copy the output files to deploy the WPF application, WPF application will be deployed to the target machine every time when we enable CI. Obviously, not every modification we want to deploy to the target machine. So, we need a release pipeline to separate our build and deploy.

希望这会有所帮助.

这篇关于当我拥有WPF应用程序时,该如何处理Azure版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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