Missing assembly reference in linked files?

R

Ray Mitchell

Hello,

I have an application that uses a 3rd-party DLL for a C# .NET project. I
have two separate projects, where some of the source files are common to both
projects while others are unique. As a result, in Solution Explorer I set
links to the common files rather than keeping two copies. I also set
assembly references to the DLL in both projects. Although there is no
problem using classes from the DLL in the files that are actually unique to
each project, it can't locate the classes in the common files that I have
merely linked to from each project. What needs to be done to make the
classes visible in the linked files too?

Thanks,
Ray
 
F

Family Tree Mike

Ray said:
Hello,

I have an application that uses a 3rd-party DLL for a C# .NET project. I
have two separate projects, where some of the source files are common to both
projects while others are unique. As a result, in Solution Explorer I set
links to the common files rather than keeping two copies. I also set
assembly references to the DLL in both projects. Although there is no
problem using classes from the DLL in the files that are actually unique to
each project, it can't locate the classes in the common files that I have
merely linked to from each project. What needs to be done to make the
classes visible in the linked files too?

Thanks,
Ray

That should work. Are you building within the Visual Studio or building
outside with MSBuild? What is the error? Are you simply missing a
using statement at the top for the namespace?
 
R

Ray Mitchell

Ray Mitchell said:
Hello,

I have an application that uses a 3rd-party DLL for a C# .NET project. I
have two separate projects, where some of the source files are common to both
projects while others are unique. As a result, in Solution Explorer I set
links to the common files rather than keeping two copies. I also set
assembly references to the DLL in both projects. Although there is no
problem using classes from the DLL in the files that are actually unique to
each project, it can't locate the classes in the common files that I have
merely linked to from each project. What needs to be done to make the
classes visible in the linked files too?

Thanks,
Ray



I just finished kicking myself so you guys won't have to! It turns out I
forgot I actually had 3 projects in the same solution and the 3rd one did not
have the required assembly reference. Now it all works properly. Duh.
....sorry for wasting your time!

Ray
 

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