0

I have two solutions with multiple projects each. The two solutions utilize circular dependency to get a full build of the application.

Basically

1. Build two projects from solution 1.
2. Build three projects from solution 2.
3. Build all solution 1.
4. Build all solution 2.

Which is fine, once built it runs great, the problem is if it is updated at all by another developer I have to get latest, then go through the whole process again....and again....and again.

After some research I found this question/answer which showed how to build all solutions in a directory using a batch file. My question would take this a step further, is it possible to build specific projects from multiple solutions, alternating between solutions as the build progresses using a batch file?

Thanks.

Community
  • 1
  • 1
todd.pund
  • 689
  • 2
  • 11
  • 36
  • You can build a specific project with `MsBuild.exe MySolution.sln /t:ProjectName:TargetName` – stuartd Nov 04 '16 at 15:30
  • @stuartd if I were to add, say, 5 projects from multiple solutions in a list to a batch file would it try to run them concurrently or would it execute iteratively? – todd.pund Nov 04 '16 at 16:08
  • As long as there's one line for each, I would expect it to run each one at a time. – stuartd Nov 04 '16 at 16:33
  • Hi there, a circular dependency gives me the whiff of code-smell! I'd be careful working against the development environment by trying to bandage around this problem! Just my 2 cents – Monza Nov 28 '16 at 22:29

1 Answers1

0

You can build a specific project with MsBuild.exe MySolution.sln /t:ProjectName:TargetName

Per stuartd (from comment)

todd.pund
  • 689
  • 2
  • 11
  • 36