VSTS:发布管理将工件部署到内部部署的 IIS

Hus*_*man 5 autorelease msdeploy ms-release-management azure-devops azure-pipelines

我正在使用 VSTS 发布管理将工件部署到 IIS 网站。我有几个要部署的 Web 应用程序和 Web 服务。所以,我试图找出最适合我的情况的任务类型。

我使用 Visual Studio Build Task 为项目创建了一个构建定义,如下所示: 在此处输入图片说明

这工作正常,但我需要添加一个任务来复制 IIS 网站目录下的工件。

另一种方法是使用 IIS Web 部署作为发布定义中的任务,因此我将构建定义创建为:

在此处输入图片说明

但是,它需要发布配置文件(构建失败,因为找不到它)。我不需要为应用程序中的每个项目创建一个发布配置文件,因为这会带来太多的工作。

是否有解决方法或什么是首选方法?

Edd*_*SFT 3

You can update your build definition to generate a web deployment package and upload it to artifacts. And then in Release Management, add a task to run "projectname.deploy.cmd" in the deployment package to deploy it to your IIS server. Refer to this link for details: How to: Install a Deployment Package Using the deploy.cmd File Created by Visual Studio.

And you can also enable FTP Publishing on your IIS server and add a task in your release to publish the artifacts via FTP. You may need this task: FTP Uploader.