Linked Reference

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

    #1

    Linked Reference

    Hi there,

    I have a solution that contains 2 executable applications. I would like
    to include the output from 1 of the executable applications as "content" for
    the other executable application and have it update its reference on
    compilation. How would I do this in VB.NET? I have tried just adding a
    reference to the project but it does not allow me to as it would "create a
    circular dependency". Many thanks in advance.

    Nick.


  • NickP

    #2
    Re: Linked Reference

    Hi there,

    Not to worry, I have found a resolve by copying the file in a post build
    event.

    Nick.

    "NickP" <a@a.comwrote in message
    news:%23pxKT2Mr HHA.1204@TK2MSF TNGP04.phx.gbl. ..
    Hi there,
    >
    I have a solution that contains 2 executable applications. I would
    like to include the output from 1 of the executable applications as
    "content" for the other executable application and have it update its
    reference on compilation. How would I do this in VB.NET? I have tried
    just adding a reference to the project but it does not allow me to as it
    would "create a circular dependency". Many thanks in advance.
    >
    Nick.
    >

    Comment

    • Spam Catcher

      #3
      Re: Linked Reference

      "NickP" <a@a.comwrote in news:#pxKT2MrHH A.1204@TK2MSFTN GP04.phx.gbl:
      Hi there,
      >
      I have a solution that contains 2 executable applications. I
      would like
      to include the output from 1 of the executable applications as
      "content" for the other executable application and have it update its
      reference on compilation. How would I do this in VB.NET? I have
      tried just adding a reference to the project but it does not allow me
      to as it would "create a circular dependency". Many thanks in
      advance.
      So project A depends on project B?

      Project B depends on Project A?

      That's a circular reference. The ideal way to solve this problem is to pull
      out the common code and place it into a shared DLL. This will ensure the
      code compiles correctly.

      Comment

      • NickP

        #4
        Re: Linked Reference

        Hi Spam,

        Sorry I think you misunderstand, they are both executable. The only
        shared code between the 2 is a single class library. The error VS is giving
        is utter bull.

        All I wanted was an up to date copy of the current build of executable
        (B) included in the output path of executable (A), and updated automatically
        each time I rebuild. Anyway, as I already mentioned, I have solved it by
        copying the executable (B) via a post build even to the relevant folder.
        All works splendid.

        Thanks for your help none the less.

        Nick.

        "Spam Catcher" <spamhoneypot@r ogers.comwrote in message
        news:Xns994D626 37F75Ausenethon eypotrogers@127 .0.0.1...
        "NickP" <a@a.comwrote in news:#pxKT2MrHH A.1204@TK2MSFTN GP04.phx.gbl:
        >
        >Hi there,
        >>
        > I have a solution that contains 2 executable applications. I
        > would like
        >to include the output from 1 of the executable applications as
        >"content" for the other executable application and have it update its
        >reference on compilation. How would I do this in VB.NET? I have
        >tried just adding a reference to the project but it does not allow me
        >to as it would "create a circular dependency". Many thanks in
        >advance.
        >
        So project A depends on project B?
        >
        Project B depends on Project A?
        >
        That's a circular reference. The ideal way to solve this problem is to
        pull
        out the common code and place it into a shared DLL. This will ensure the
        code compiles correctly.

        Comment

        Working...