<p>At the company I work for we have a "Utility" project that is referenced by pretty much ever application we build. It's got lots of things like NullHelpers, ConfigSettingHelpers, Common ExtensionMethods etc.</p>

<p>The way we work is that when we want to make a new project, we get the latest version of the project from source control add it to the solution and then reference the project from any new projects that get added to the solution.</p>

<p>This has worked ok, however there have been a couple of instances where people have made "breaking changes" to the common project, which works for them, but doesn't work for others.</p>

<p>I've been thinking that rather than adding the common library as a project reference perhaps we should start developing the common library as a standalone dll and publish different versions and target a particular version for a particular project so that changes can be made without any risk to other projects using the common library.</p>

<p>Having said all that I'm interested to see how others reference or use their common libraries.</p>

[{'answer_id': 41418, 'author': 'markom', 'author_id': 1269, 'author_profile': 'https://Stackoverflow.com/users/1269', 'pm_score': 4, 'selected': True, 'text': "<p>That's exactly what we're doing. We have a Utility project which has some non project specific useful functions. We increase the version manually (minor), build the project in Release version, sign it and put it to a shared location.</p>\n\n<p>People then use the specific version of the <em>library</em>.</p>\n\n<p>If some useful methods are implemented in some specific projects which could find their way into main Utility project, we put the to a special helper class in the project, and mark them as a possible Utility candidate (simple //TODO). At the end of the project, we review the candidates and if they stick, we move them to the main <em>library</em>.</p>\n\n<p>Breaking changes are a no-no and we mark methods and classes as [Obsolete] if needed. </p>\n\n<p>But, it doesn't really matter because we increase the version on every publish.</p>\n\n<p>Hope this helps.</p>\n"}, {'answer_id': 41441, 'author': 'Rob Cooper', 'author_id': 832, 'author_profile': 'https://Stackoverflow.com/users/832', 'pm_score': 1, 'selected': False, 'text': "<p>I've had the <em>EXACT</em> same issue!</p>\n\n<p>I used to use project references, but it all seems to go bad, when as you say, you have many projects referencing it.</p>\n\n<p>I now compile to a DLL, and set the CopyLocal property for the DLL reference to false after the first build (otherwise I find it can override sub projects and just become a mess).</p>\n\n<p>I guess in theory it should probably be GAC'ed, but if its a problem that is changing a lot (as mine is) this can become problematic..</p>\n"}, {'answer_id': 41567, 'author': 'Ed Schwehm', 'author_id': 1206, 'author_profile': 'https://Stackoverflow.com/users/1206', 'pm_score': 2, 'selected': False, 'text': "<p>We use branching in source control; everyone uses the head branch until they make a release. When they branch the release, they'll branch the common utilities project as well. </p>\n\n<p>Additionally, our utilities project has its own unit tests. That way, other teams can know if they would break the build for other teams. </p>\n\n<p>Of course, we still have problems like you mention occasionally. But when one team checks in a change that breaks another team's build, it usually means the contract for that method/object has been broken somewhere. We look at these as opportunities to improve the design of the common utilities project... or at least to write more unit tests :/</p>\n"}]
['https://Stackoverflow.com/questions/41405', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/493/']