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)
To add a reference, right-click on the References or Dependencies node in Solution Explorer and choose Add Project Reference. You can also right-click on the project node and select Add > Project Reference.
The trick is to add the item as a link:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With