Linked Reference

N

NickP

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.
 
N

NickP

Hi there,

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

Nick.
 
G

Guest

NickP said:
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.
 
N

NickP

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top