473,383 Members | 1,837 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

create plugin assemblies?

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
Nov 16 '05 #1
4 2813
See

Creating a Plug-In Framework
http://msdn.microsoft.com/asp.net/co...nframework.asp

Search Dynamically for Plug-Ins
http://msdn.microsoft.com/asp.net/co...forplugins.asp

--

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
"pnp" <pnp.@.softlab.ntua.gr> escribió en el mensaje
news:%2****************@tk2msftngp13.phx.gbl...
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

Nov 16 '05 #2
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?

Carlos J. Quintero [.NET MVP] wrote:
See

Creating a Plug-In Framework
http://msdn.microsoft.com/asp.net/co...nframework.asp

Search Dynamically for Plug-Ins
http://msdn.microsoft.com/asp.net/co...forplugins.asp

Nov 16 '05 #3
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
"pnp" <pnp.@.softlab.ntua.gr> escribió en el mensaje
news:ub**************@TK2MSFTNGP14.phx.gbl...
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?


Nov 16 '05 #4
>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.


Look at these:

http://www.codeproject.com/useritems/RazorPt1.asp
http://www.codeproject.com/csh*arp/extensibleui.asp
http://msdn.microsoft.com/msdn*mag/i...3/10/Plug-Ins/
http://msdn.microsoft.com/libr*ary/d...ry/e*n-us/dnas...

http://www.divil.co.uk/net/art*icles...ns/plugins.asp

-----------
Ajay Kalra
aj*******@yahoo.com

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: serge calderara | last post by:
Dear all, I have a library named Video.dll which provide certain vido functionnality as wel as menu and proprety using an interface. This library is working as a plugin Then I have my main...
2
by: Matt | last post by:
I'm hoping someone can steer me in the right direction to try to do the following: I am developing an application where we receive files from customers. Right now we receive a variety of...
0
by: David Levine | last post by:
This is a lengthy post; please bear with me... This will be a large system with dozens of plugins. In addition to plugins developed internally there will be 3rd parties that will write their own...
0
by: Joel Foner | last post by:
I realize this sounds like a bizarre question, but... is it possible to create an MFC window as a child of a non-MFC parent? Here's the background. I'm trying to create an add-in for a product...
0
by: Greg Conely via .NET 247 | last post by:
I am creating a application that will be using plugins. I am doing this so that when I want to let this application work with another type of dbase system, I only have to write\install one plugin,...
2
by: Luis Arvayo | last post by:
Actually it is: How to define the plugin assemblies path in order to find other assemblies which the plugin depends on. Example: If I have: c:\myapp\application.exe
3
by: Tim | last post by:
Hi, I've been struggling for a while trying to run plugins in C#, which have external references. The plugins load, and I can invoke methods through reflection until the method uses some code...
7
by: WTH | last post by:
I am now aware (I am primarily a C++ developer) that in C# if you reference the same interface from the same file in two different projects the types are actually incompatible. I found this out...
4
by: illegal.prime | last post by:
Hi all, I'm getting unexpected results when trying to preload assemblies into an AppDomain I'm creating. Upon creation of the AppDomain - I attach an AssemblyResolve to both my current AppDomain...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.