Ask The Pros
Debugging
Text VisualizerOptions
Add an existing file to a project without copying it.Changing the My Projects folder location (and other settings) in SSMS
C# Code Formatting
Registry Hacks
Create Solutions Without FoldersShortcuts
Add an existing file to a project without copying it.
Written by: Darren Stokes at 3/18/2008 4:44:20 AMA 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.
-Darren
blog comments powered by Disqus
Copyright © 2005-2008 Infozerk Inc. All rights reserved. an infozerk project
