Reputation: 50328
I have an external configuration file, for a third party tool, which I would like to be able to edit as part of editing other project components in VS2010.
The project I'm working on is an MVC-3 project, and the file is located outside of the folder structure for the project (it's in the equivalent of ../ExternalConfig to the root).
How do I add a reference to this file to VS2010? Currently, all my attempts have resulted in VS creating a copy of the file inside of its directory structure, which is not ideal.
(Sure, I could go to some strange lengths, like adding a script to the build process to put the config file in the right place, but I'd rather just be able to edit it where it sits)
Upvotes: 9
Views: 13493
Reputation: 7392
The trick is to add the item as a link:
Upvotes: 33