Dinamically loads unreferenced dlls

R

Ronchese

Hi all.

I'm planning build a user interface program that loads several dlls from a
file list (like plugins). That dlls are not referenced on my program.

That dlls can be build for any person, using one specific interface, and
just added to file list and the my program will be able to load it.

How can I do it using pure .Net?

Thx in advance.

[]s
Cesar
 
H

Herfried K. Wagner [MVP]

Ronchese said:
I'm planning build a user interface program that loads several dlls from a
file list (like plugins). That dlls are not referenced on my program.

That dlls can be build for any person, using one specific interface, and
just added to file list and the my program will be able to load it.

Yes, this can be done with managed code. Basic plugin sample:

<URL:http://dotnet.mvps.org/dotnet/samples/codingtechnique/PlugIns.zip>
 
R

Ronchese

Thx man.

That samples will be valuable! I'll use the reflections to do the work.

[]s
Cesar





"Herfried K. Wagner [MVP]" <[email protected]> escreveu na mensagem
Ronchese said:
I'm planning build a user interface program that loads several dlls from a
file list (like plugins). That dlls are not referenced on my program.

That dlls can be build for any person, using one specific interface, and
just added to file list and the my program will be able to load it.

Yes, this can be done with managed code. Basic plugin sample:

<URL:http://dotnet.mvps.org/dotnet/samples/codingtechnique/PlugIns.zip>
 

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