create plugin assemblies?

P

pnp

Hi all,
What is the best way to create some plugin assemblies so that the
main app will load them automaticaly from a particular folder in the
filesystem. So if you would like to give the app an extra functionality
you would copy an assembly to that specified folder and it would then be
parsed by the assembly. All the assemblies don't necessarily have to
have the same functionality (methods implemented).

Any suggestions?

-pnp
 
P

pnp

thanks on your reply. From what I can see the first option cannot help
me if I have plugins with different function numbers to use e.g. one has
three methods to use, the other 11 and so on... Can the second method
provided help me on a situation like this one?
 
C

Carlos J. Quintero [.NET MVP]

If your plugins don´t have the same functionality then you can define
different interfaces for each subset of functionality, and you can load only
the ones which implement the interface needed for your context.

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
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

Top