An IDE solution question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ray Mitchell

    An IDE solution question

    Hello,

    I have two C# applications that use some files common to
    both and some files unique to each. On the computer
    itself I have them stored them in folders PROJA, PROJB,
    and COMMON. I would like to set up a similar structuring
    in the IDE so I created a solution containing two
    projects. In the Solution Explorer I have no trouble
    creating folder PROJA in project PROJA and folder PROJB in
    project PROJB to hold the project-specific .CS files, but
    how do I specify a COMMON folder to hold the common
    files? All I've been able to do so far is create a
    COMMONA and COMMONB in their respective projects and
    duplicate the common .CS files, and this is certainly
    unacceptable.

    Thanks,
    Ray Mitchell
  • Joe Mayo

    #2
    Re: An IDE solution question

    "Ray Mitchell" <RayMitchell_No SpamPlease_@Mea nOldTeacher.com > wrote in
    message news:08da01c3aa 10$46b8ca20$a00 1280a@phx.gbl.. .[color=blue]
    > Hello,
    >
    > I have two C# applications that use some files common to
    > both and some files unique to each. On the computer
    > itself I have them stored them in folders PROJA, PROJB,
    > and COMMON. I would like to set up a similar structuring
    > in the IDE so I created a solution containing two
    > projects. In the Solution Explorer I have no trouble
    > creating folder PROJA in project PROJA and folder PROJB in
    > project PROJB to hold the project-specific .CS files, but
    > how do I specify a COMMON folder to hold the common
    > files? All I've been able to do so far is create a
    > COMMONA and COMMONB in their respective projects and
    > duplicate the common .CS files, and this is certainly
    > unacceptable.[/color]

    Hi Ray,

    You have a couple options. One is if you right click on ProjA (or ProjB)
    and select Add Existing Item there will be an Open File-like dialog appear.
    On it's open button is a drop-down with an entry called Link file.

    Another option is to create a DLL project for Common and add a reference to
    Common in ProjA and ProjB. This is my preferred option because if you add
    new artifacts to Common, other projects with references to Common get the
    updates automatically and you don't have to mess around with going back to
    link the files.

    Joe
    --
    Welcome to C# Station!  This is a community site for people interested in applying .NET using the C# programming language.  We’ve been around since July 4th 2000 and have continued to grow over the years.  Items of interest include Articles, Books, Links, Documentation,  and Tutorials. More… Source Code If you would like to see an […]



    Comment

    Working...