How to tell TFS to deploy multiple webapps containing in one solution?

前端 未结 4 944
温柔的废话
温柔的废话 2020-12-13 15:48

We have a single solution which contains one webapp project and some accompanying projects. Our TFS 2010 is building this solution every night and deploys the webapp to an I

4条回答
  •  我在风中等你
    2020-12-13 16:02

    It took me 2 days on this problem. I found a freaking simple solution that works for me.

    I created 2 more configurations by using solution's Configuration Manager named DeployMvc1, DeployMvc2. Uncheck build for MVC2 project in DeployMvc1 and uncheck build for MVC1 project in DeployMvc2.

    Next, I created 2 build definitions DeployMvc1Build and DeployMvc2Build. The first one listens to MVC1 project with

    /p:DeployObBuild=true
    /p:Deploytarget=MsDeployPublish
    /p:Configuration=DeployMvc1
    /p:Platform="Any CPU"
    /p:MSDeployPublishMethod=WMSvc
    /p:MsDeployServiceUrl="https://{server1}:8172/MsDeploy.axd"
    /p:DeployIisAppPath="mvc1"
    /p:AllowUntrustedCertificate=True
    /p:Username="{username}"
    /p:Password={password}
    

    The second one listens to MVC2 project with

    /p:DeployObBuild=true
    /p:Deploytarget=MsDeployPublish
    /p:Configuration=DeployMvc2
    /p:Platform="Any CPU"
    /p:MSDeployPublishMethod=WMSvc
    /p:MsDeployServiceUrl="https://{server2}:8172/MsDeploy.axd"
    /p:DeployIisAppPath="mvc2"
    /p:AllowUntrustedCertificate=True
    /p:Username="{username}"
    /p:Password={password}
    

    Then my problem solved.

提交回复
热议问题