Visual Studio Hacks
Options Tips

Add an existing file to a project without copying it.

by dstokes on March 18, 2008

A few months ago, I posted an article on my blog explaining Versioning Multiple Assemblies by changing one partial AssemblyInfo file.

Periodically, I get email asking how to add an existing file without having Visual Studio copy the file into the project directory, which is the default behavior.

If you want to add an existing file to a project and have the project point to the file where it resides, press the little arrow key on the right side of the add button on the add existing dialog.  The arrow will present a small context menu that allows the option of adding the file as a link, which will cause the Visual Studio project to point to that file where it is instead of copying it to the project directory.

addexisting

-Darren

Comments on this entry are closed.

Previous post: Changing the My Projects folder location (and other settings) in SSMS

Next post: Visual Studio Links #11