I have two solutions which have some common code, so I'd like to extract it out and share it between them. Furthermore, I'd like to be able to release that library independently because it might be useful to others.
You can "link" a code file between two projects. Right click your project, choose Add
-> Existing item
, and then click the down arrow next to the Add
button:
In my experience linking is simpler than creating a library. Linked code results in a single executable with a single version.