使用 TFS 2018 (TFVC) 使用 CI/CD 处理 .net Web 应用程序 [英] handling .net web applications with CI /CD using TFS 2018 (TFVC)
问题描述
我需要一些关于使用 TFS 2018 (TFVC) 使用 CI/CD 处理 .net Web 应用程序的信息.我正在使用 .NET 核心构建模板,我的疑问是:1) 我们是否需要传递 MS Build Parameter 来触发 Web Deploy?2) 我们是否需要在发布定义中创建发布管道并使用一些可用于部署 Web 应用程序和配置 IIS 设置的工具?
I need some information on handling .net web applications with CI /CD using TFS 2018 (TFVC).I am using .NET core build template, my doubts are: 1) do we need to pass MS Build Parameter to trigger Web Deploy? 2) do we need to create a release pipeline in release definition and use some tool available to deploy web app and configure IIS settings?
请告诉我一个方法,我很困惑.
Please let me know a method, i am confused.
推荐答案
您不需要传递其他参数.默认参数应该是:
You don't need to pass other parameters. The default parameters should be :
/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactstagingdirectory)\WebApp.zip" /p:DeployIisAppPath="Default Web Site"
是的,您需要创建一个发布管道来使用 IIS 网站部署任务来部署 Web 应用程序,如果没有这样的任务,那么您可以安装扩展 使用 WinRM 的 IIS Web 应用部署 并使用 WinRM - IIS Web 应用部署代码>任务来做到这一点.
Yes, you need to create a release pipeline to deploy the web app using the IIS Website Deployment task, if no such a task, then you can install the extension IIS Web App Deployment Using WinRM and use WinRM - IIS Web App Deployment
task to do that.
详情请参阅以下文章.
- 将您的 ASP.NET Core 应用程序部署到 Windows 虚拟机
- 部署使用 WinRM 将您的 Web 部署包部署到 IIS 服务器
- 部署到 Windows 虚拟机
- 在 Visual Studio Team Services 中构建 ASP.NET Core Web 应用程序(VSTS)
这篇关于使用 TFS 2018 (TFVC) 使用 CI/CD 处理 .net Web 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!