Following my post “Visual Studio and PowerShell Trick“ I had another little issue, I have one mapping file, mapping.xml, that I want to use on my website and with my data access layer unit tests project.

I used to solve this using the linked file possibility of Visual Studio. Point the target folder, and click Add Existing item, browse to your source folder, choose the original file, and at the bottom of the dialog you will have the Add button showing a dropdown, you juste then need to use Add As Link.

Now I have the same mapping file used in both locations.

And I can run and watch the results of my unit tests happily!