Build and Deploy a Web Application with TFS 2017 using Web Deploy Package

前端 未结 2 1917
醉话见心
醉话见心 2020-12-20 04:09

My problem is similar to this

Build and Deploy a Web Application with TFS 2015 Build

But, the solution is not working for me. I am working on Continuous Int

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-20 04:10

    To pass parameters into MSBuild you need a .pubxml file (called the publishing profile) within the PublishProfiles folder under your project properties folder. This is why using /p:DeployOnBuild=true;PublishProfile=MyProfile as the msbuild arguments. More details please refer Sayed Ibrahim Hashimi in this question: How do I configure MSBuild to use a saved publishProfile for WebDeploy?

    If you want to generate Artifacts please make sure you also use the Publish Build Artifacts build step. Copy the Artifacts of the Build and Publish the Artifacts to Drop Location on the Server. This will be the location to later on pick the build artifacts for the Release. The files will locate at the staging folder-- Build.StagingDirectory something like agent/_work/2/a

    For more details take a look at this topic Visual Studio Team Services Release Management IIS Web Deployment vnext

提交回复
热议问题