TFS 2010 + MSDeploy when solution has multiple web applications

后端 未结 2 827
天涯浪人
天涯浪人 2021-01-05 19:44

I have two solutions

  • SolutionA.sln
    • WebApplication1.csproj
  • SolutionB.sln
    • WebApplication1.csproj
    • WebApplication2.c
2条回答
  •  青春惊慌失措
    2021-01-05 20:35

    This is what I ended up deciding to do. I now have three solutions

    • SolutionA.sln
      • WebApplication1.csproj
    • SolutionB.sln
      • WebApplication1.csproj
      • WebApplication2.csproj
    • SolutionC.sln
      • WebApplication2.csproj

    I do most of my development in SolutionB because I like being able to easily reference and compile against both projects. I don't use SoluctionC at all other than as part of the following two build configurations

    • BuildConfigA
      • should build SolutionA and deploy WebApplication1
    • BuildConfigB
      • should build SolutionC and deploy WebApplication2 (and not WebApplication1 of course)

提交回复
热议问题