This is a mirror of official site: http://jasper-net.blogspot.com/

Visual Studio Sharing Files Between Projects

| Thursday, November 25, 2010
VSAddLink.png

Normally when an existing file is added to a project within Visual Studio, the file is copied into the project folder. There is an option to link to the file, rather than duplicate it, allowing files to be shared between multiple projects.


Adding Existing Files to a Project
When you are creating a project using Visual Studio you can create and add new files or include files that already exist. When you add an existing file using the default options, the file is copied from the original location into the target directory within the project folder. All further editing is of the new copy and is not reflected in the original file.
Another option is to link to the existing file instead of duplicating it. Using this option you can share files between multiple projects, either in the same solution or separate solutions. As only one file exists, editing it is reflected in all projects that use it. This can be particularly useful if you have utility classes that are not complex enough to warrant compiling into an assembly, or if you have a configuration file that you wish to share amongst all projects in a solution.

Read more: Black Wasp

Posted via email from .NET Info

0 comments: