Thursday, April 24, 2008

Quick Tip - Add A Visual Studio File As A Link

Have ever wanted to include a file in a Visual Studio project, but you didn't want it to be copied to the project directory? You could hack the location into the project file, but editing XML seems to be overkill for such a simple task. A colleague at work showed me a better way (thanks Cliff!). Use the Add As Link option. It is in an obscure location. When you go to add an existing item you can click the arrow next to the Add button and find Add as link.

This can really be helpful when you are sharing XML schemas, interfaces, etc... between assemblies that need to keep these resources in sync, such as client and server assemblies.

Save to Add to Technorati Add to dzone

No comments: