Reputation: 123
I have two separate visual Studio 12 C# project with the following folder structure. The Common folder contains classes that are common to both projects.
\CompanyName\Site\Product\ProjectA\SRC - \CompanyName\Site\Product\Projectb\SRC \CompanyName\Site\Product\Common\SRC
how can I include the Common\SRC folder and subfolders in each project without having to copy the folder into the project SRC folders?2
Upvotes: 1
Views: 1064
Reputation: 6589
You can achieve this by adding existing folders/files as links. By using links you can have files in one location but link them into multiple projects.
A simple way to link files is to drag and drop them into a folder in your project while holding the ALT key (you will see an arrow next to files).
This method also works with folders and subfolders. In this case drag and drop (while holding ALT) the top folder that you want to include.
For more info on how to link existing files see: https://support.microsoft.com/en-us/kb/306234
Upvotes: 2