There's some debate here over which is better for referencing our common code base from other projects: by project or by assembly. I'm in favor of referencing the project, especially since we have automated unit tests that prove that the common code does what it needs to.
The thought from the other camp is to lock down those projects and only release assemblies once a month or something. Then force all projects to reference the assemblies. They think this will protect them from deploying untested code. They are "too busy" to write automated unit tests and configure their projects for continuous integration and I have no influence on that, so please do not focus on this aspect.
Here's the reasons I can think of why project references are the better solution. I'm looking for other opinions as well.
PROS:
- Referencing projects ensures you are working with the latest code. You don't have to wait on anything.
- Reducing duplication. Without having the latest code, there is a greater chance of reinventing the wheel.
- If a developer needs something and can't add it to the assembly where it belongs, it will be created in any location that will work, creating many inconsistencies and code duplication.
- Development is easier because you can easily see/debug what is happening in the referenced code.
- Our common stuff doesn't change that often, but when it does, it's usually something useful. Why add the extra burden of maintenance and assembly release management.
CONS:
- Could possibly take longer to load.
- Can take slightly longer to add projects to a new solution then adding assembly references.