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"
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.
Please see below articles for details.
- Deploy your ASP.NET Core app to a Windows virtual machine
- Deploy your Web Deploy package to IIS servers using WinRM
- Deploy to a Windows Virtual Machine
- Building an ASP.NET Core Web App in Visual Studio Team Services
(VSTS)