S_A_S


I want to develop a plug-in API for one of my VB.net applications.

Does anyone knows a easy an detailed tutorial for solving my problem or coluld someone explain how to write an application plug-in Interface



Re: Writing a plug-inable application in .net 2

weirdbeardmt


I don't think you need to do anything particularly difficult. Just add a project to your solution which exposes some public classes with the required function calls...





Re: Writing a plug-inable application in .net 2

S_A_S

The solution could not be publich code, because I need to load the Plug-ins dynamically at runtime - so I can not know bevore what I really load.




Re: Writing a plug-inable application in .net 2

weirdbeardmt

Considering you're being extremely vague about you want to do, then I suggest you have a look at VSTA. It's about as close as I can guess about what you want to do.





Re: Writing a plug-inable application in .net 2

S_A_S

What does "VSTA" exactly mean



Re: Writing a plug-inable application in .net 2

weirdbeardmt

S_A_S wrote:
What does "VSTA" exactly mean


Visual Studio Tools for Applications.





Re: Writing a plug-inable application in .net 2

S_A_S

I don't think that VSTA would help me. I want to create a plug-in solution for one of my own applications.



Re: Writing a plug-inable application in .net 2

Bruno Yu - MSFT

S_A_S,

I hope the following article can help you with developing a Plugin API in .NET Application. The sample code in written in C#, however, I hope you are able to get the answer from the article:

Let Users Add Functionality to Your .NET Applications with Macros and Plug-Ins

http://msdn.microsoft.com/msdnmag/issues/03/10/Plug-Ins/

Most user applications benefit from the ability to be extended by other developers. It's often easier and more efficient to extend an existing application that users are already familiar with and trained on than it is to develop one from scratch. Thus, extensibility makes your application more attractive. You can build extensibility into your application by supporting features like plug-ins or macros. This is easily accomplished using the .NET Framework even if the core application isn't a .NET Framework app. In this article, the author describes extensibility features of the .NET Framework including late binding and reflection and how to use them, along with plug-in security considerations.