1.Adding a Existing folder to VS Project. Which is outside the VS Project
Answer –
You can use a symbolic link. This makes modifying the file in one project modify it in the other (as it’s actually the same file).
To do this:
- Open cmd prompt as administrator
- mklink /d [current project directory name] [directory in other project it should point to]
This has it’s drawbacks and pitfalls, but I use it on occasion for duplicate libraries that need different names.
Edit for Anoop: Steps to add to Visual Studio:
- Create link in the project folder using the steps above.
- In Visual Studio… select project in Solution Explorer.
- At the top of Solution Explorer… click the Show All Files button (may need to click it twice if already active).
- The link will now show in your project… right-click and choose Include In Project.
These are the steps I follow and works for a couple different projects.