Nathan Tregillus
Nathan Tregillus

Reputation: 6354

Does Compiling one csproj with MSBuild Compile referenced projects as well?

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!

Upvotes: 1

Views: 511

Answers (1)

Reed Copsey
Reed Copsey

Reputation: 564831

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.

Upvotes: 1

Related Questions