Need help with Assembly Problem

D

dln

I'm having a rather weird problem when attempting to build my project that
maybe someone could help me out with. Basically, I have a workspace
containing two C# projects. The first project is a straight assembly and
the second is a COM interop assembly which depends on the output from first
project. Both projects contain references to three interop assemblies. I
also have the projects configured to build their output files to a common
directory (so both projects dump their compiled dlls to the same directory).

The problem comes when referencing objects contained within the interop
assemblies. One project can see all the objects exposed from the interop
assemblies and the other will not. I can use the object browser to take a
look at the objects/interfaces exposed by the interop libraries, so I know
that at the very least the assemblies are readable. I can't explain why one
project will build with no errors whereas the other project will continually
not resolve objects defined in the interop assemblies - even though both
projects reference the same object types from the same assemblies. I'm a
bit of a newb when it comes to C#, so maybe there is an obvious solution to
this problem, but I'm at a loss. Does anybody have any ideas?

Thanks.
 
M

Mohamoss

hi
may be i didn't get a clear idea of what you are tring to do ( you might
need to get more clarification ) . but you have one project ( of the two
you are building ) refrencing the other . you might not need to added
refernce to the other three in both . just do it in the one that is used by
the other . don't use it on the one that use the other . i don't know if
this help but you might need to explain more and i will be more that
willing to help
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
D

dln

Mohamoss,

That makes sense and it did indeed fix the problem. Thanks for the reply.

Darcy.
 
M

Mohamoss

that is great :)
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 

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