"How can I share one source code file across several projects? I want to have this file on one place only and use it in multiple projects so when I modify it in one project, the changes get automatically reflected in all projects. When I add existing file to the project, a local copy is always created and used." This is the question that I answered many many times on various newsgroups. The answer is very simple:
- Go to menu Project - Add Existing Item...
-
Select desired file and from drop-down menu on Open button (little triangle on the right side) select Link File.
This will only link existing file and will not create any local copy. It seems that Microsoft should change the way how to do it because so many VS users have this problem.