Click here to Skip to main content
15,349,119 members
Articles / Web Development / ASP.NET
Posted 1 Mar 2013


5 bookmarked

First You See Them. Then You Don’t. Now You Will.

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
1 Mar 2013CPOL1 min read
How to find and link config and other files from other projects within your solution.

It can sometimes be tricky when you try to share config files in a solution. 

Linking to share files is one of the oldest and easiest things to do in Windows. But it's also easy to get tripped up by another old feature of Windows, filtering files for dialog boxes.

One practice in integration testing is for the integration test project to link to the infrastructure project for configuration files for NHibernate, Log4Net, or other libraries.  

Another approach is to create a Solution Folder to store those share-worthy files.  

Image 1

But then when you go to link them into your project by adding them as an Existing Item,

Image 2

You do not even see the folder, let alone the files.

Image 3

And if you look in Windows Explorer, you don't see the folder there either.

Image 4

How can you link the files you can see in Solution Explorer, but not in the dialog to add them?

Or even see them with Windows Explorer?  

You do it by changing the file filter in the Visual Studio dialog to All Files.

Image 5

*Since the folder is a Solution Folder you only see it in Solution Explorer.

And then select Add as Link on the the drop down on the Add button.

Image 6



This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

United States United States
David Greene is an application developer in Southern California.

Comments and Discussions

-- There are no messages in this forum --