1

My question is pretty simple. Do I have to do a complete solution compile with MSBuild if I have multiple projects that reference each other via project reference, or can I simply compile just one of my projects, say my web deployment project, and MSBuild will figure out the references, and compile the referenced projects for me?

I am trying to simplify our CI environment, and I find it strange that I am currently building the whole solution, then individual deployment projects separately.

Thanks in advance!

Nathan Tregillus
  • 6,006
  • 3
  • 52
  • 91

1 Answers1

1

You would need to use msbuild to compile the solution if you want references to also be updated. This also requires that the solution be setup with proper depedencies, and the projects be set to build (which typically happens by default).

Compiling a single .csproj will only compile that project.

seva titov
  • 11,720
  • 2
  • 35
  • 54
Reed Copsey
  • 554,122
  • 78
  • 1,158
  • 1,373
  • Thank you! Basically my current CI system compiles the system (without deployment projects) and runs unit tests, if they pass, I then compile the deployment projects individually which will retrieve the dlls that were compiled in my original solution build. – Nathan Tregillus Aug 10 '12 at 18:05