Sometimes you have a file F in a project P1, and you want to add it to your project P2 without actually getting a copy of the file. In Visual C++ you simple choose Add Existing Item, the rest is taken care of for you. However, in Visual C# (and maybe Visual Basic which I didn't test) even if you choose Add Existing Item and pick a file from an external folder, the file will be copied to your project folder.
I really find it awkward especially in case you have your files under version control. Luckily, I've just found a simple solution how you can share your source code between two or more projects without copying the files. At least for C# it works just perfectly. Furthermore, no 3rd party software is required!
You still choose Add Existing Item, then in the File Open dialog box you select your file and press the small arrow on the Add button. You should choose the Add As Link menu item:
Then the your file reference should be displayed as an icon with a shortcut arrow in the solution tree:
Cheers,
Kirill
Subscribe to:
Post Comments (Atom)
Thanks for sharing this post I read your complete post I agree with your view that every system developed contains something unique, original and clever. Increasing your web traffic and page views
ReplyDeleteAdd, add your website in www.directory.itsolusenz.com/
I appreciate your post, thanks for sharing the post, i would like to hear more about this in future.
ReplyDeleteNice Post with information regarding great use! The ways you have illustrated the information is impressive. Thanks!
ReplyDelete