I have a text file which I would like to include in several solutions. Following the DRY (Don’t repeat yourself) principle, I would like to have only one copy of it. Naturally, I thought of adding it to all projects using add-as-link.
However, that raises a problem of how to reference it in the code. If it were a code file - it would be accessed by using its namespace. However as a text file - though I can find the project directory easily enough - I'd also need to find its path inside the project. Hard coding that would be error prone (-what if I move it later - there's no intellisense for that).
Adding it under Properties.Resources would mean having multiple copies of it - which I'm trying to avoid.
So - how is this done?