Proj layout: where to define an interface

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an asm that implements an interface. Since the asm will be loaded
dynamically, where should the interface be defined so that the client and
implementation can both use it? It seems like over-kill to define a shared
asm that just contains the interface definition. If the inteface is defined
in a shared project file, can there be a versioning issue?
 
Take into account that an interface is a type, and a type is not only a name
(or a full name with namespace). The type identity includes also its
assembly. So, the interface must reside in a shared assembly, not in a
shared project file. The shared assembly can be the one with the
implementation as long as you don´t change the full name of the assembly,
and that includes the assembly version (AssemblyVersion attribute, set fixed
to, say, 1.0.0.0). You can change the AssemblyFileVersion attribute to
distinguish your compilations, though, since it is a different concept of
version. Otherwise, the shared assembly should contain only the definition.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 

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

Back
Top