CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Threaded View

  1. #5
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Include files as references, instead of a copy?

    C# does allow this - it's just not well known (or well documented).

    Here's how you do it:

    1) Right click on the project in the Solution Explorer
    2) Click on "Add\Existing Item"
    3) In the "Add Existing Item" dialog, choose the file to add
    4) Click on the down arrow next to the "Add" button
    5) Select "Add As Link"

    This will add the file as a link (without copying the file).

    See the 1st screenshot for the Add options

    See the 2nd screenshot for what a file looks like in the solution explorer after adding it as a link - notice the little arrow in the file icon.


    __________________________________________________________
    Arjay

    See my latest series on using WCF to communicate between a Windows Service and WPF task bar application.
    Tray Notify - Part I Tray Notify - Part II

    Need a little help with Win32 thread synchronization? Check out the following CG articles and posts:
    Sharing a thread safe std::queue between threads w/progress bar updating
    Simple Thread: Part I Simple Thread: Part II
    Win32 Thread Synchronization, Part I: Overview Win32 Thread Synchronization, Part 2: Helper Classes

    www.iridyn.com



    ...
    Attached Images Attached Images

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured