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

前端 未结 4 941
温柔的废话
温柔的废话 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:05

    As Vishal describes in the blog article you linked to yourself, all the MSBuild paramaters can be moved inside the csproj. This then means each project can have its own settings.

    I have a single solution with 6 projects, 4 class libraries and 2 web (WCF and MVC app). I followed the directive from Vishal's blog and simply moved all my MSBuild paramaters into each csproj file.. i.e.

      
        True
        MsDeployPublish
        True
        InProc
        localhost
        Dev.Auzzy\Web
        Username
        Password 
        ...
    

    Make sure you then remove the paramaters from the build definition.

    TFS then deploys as expected.. each project into the correct folder specified as the home directory for each IIS site.

    Also its worth noting that you can not include the DeployIisAppPath in the PropertyGroup as above but use the project's properties page to specify this for each build configuration. (Right Click on each project > Properties > Package/Publish Web).

提交回复
热议问题