473,404 Members | 2,174 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,404 software developers and data experts.

Global Assembly Cache Query

Hey. I'm working on a program built to support several optional plugins. I'm
looking for a way to scan the GAC and find all objects in all assemblies
that inherit from a certain interface that each plugin must implement (by
definition). Is this possible? I would prefer to do it this way because
otherwise I have to make my own assemly registration process, which is
obviously more of a mess. I realize that the GAC strategy could take just
about forever, so I'm thinking about marking all of my plugin assemblies
with an attribute that my main program can look for while scanning the GAC.
Any ideas? I'd rather not use gacutil, but instead stay inside the
framework. (Can you even do that with gacutil?)

Thanks guys.

-Andrew Janssen
Nov 22 '05 #1
1 2059
Why not just have a plugins folder and scan that? Relying on the GAC is a
bit risky, considering you may get 15 versions of the same assembly. Its not
designed for the concepts you have in mind.

Also, frankly, you can probably just provide an assembly with a installer
derived class that will install the plugins and do the registration, which
shifts virtually all the mess to you, end users would just need
installutil.exe(or an installer that can handle Installer based classes).
"Andy Janssen" <as******@uiuc.edu> wrote in message
news:uH**************@TK2MSFTNGP12.phx.gbl...
Hey. I'm working on a program built to support several optional plugins. I'm looking for a way to scan the GAC and find all objects in all assemblies
that inherit from a certain interface that each plugin must implement (by
definition). Is this possible? I would prefer to do it this way because
otherwise I have to make my own assemly registration process, which is
obviously more of a mess. I realize that the GAC strategy could take just
about forever, so I'm thinking about marking all of my plugin assemblies
with an attribute that my main program can look for while scanning the GAC. Any ideas? I'd rather not use gacutil, but instead stay inside the
framework. (Can you even do that with gacutil?)

Thanks guys.

-Andrew Janssen

Nov 22 '05 #2

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

Similar topics

3
by: DDE | last post by:
Hi everybody, I developed an assembly common to all my Web Services, so I registered it and put it in the Global Assembly Cache. Now, I modified this assembly, but cannot succed to have this new...
7
by: JerryW | last post by:
I just reinstalled .NET 2003 (after repeated attempts to get ASP.NET Web Applications to work). I first did a complete uninstall of .NET 2003, .NET Framework 1.1, and IIS. I also completely deleted...
11
by: Wolfgang Kaml | last post by:
I am not sure if this is more of an expert question, but I am sure that they are out there. I'd like to setup a general application or bin directory on my Win2003.Net Server that will hold some...
2
by: George Durzi | last post by:
I have a dll that I use in several projects, that I placed in the Global Assembly Cache. This dll is references in each of my projects. This Dll is referenced by a type= declaration in my...
41
by: Miguel Dias Moura | last post by:
Hello, I am working on an ASP.NET / VB page and I created a variable "query": Sub Page_Load(sender As Object, e As System.EventArgs) Dim query as String = String.Empty ... query =...
1
by: Ray | last post by:
Dear all, Now, I am using Global Assembly Cache to share assembly between server and clients. However, it seems that the server and clients use individual Global Assembly Cache. For example, the...
6
by: Terrance | last post by:
I currently experimenting with VB.net 2005 express edition. I was wondering if anyone knows how to deploy an assembly to the global assembly cache using the express edition? I tried using the...
2
by: rrossney | last post by:
Please look at the "what I've already done" section of this message before responding to it: I believe that I've done everything that the people who experience this error are typically told to do....
1
by: Mythran | last post by:
We don't use the Microsoft Windows Installer 2.0 for our setup packages. Instead, we use InnoSetup which is much easier to use and learn and more flexible (that I have found). The only part that...
6
by: Piotrekk | last post by:
Hi In my solution I have two projects. First is Library project. The second project uses this library ( dll ). I am registering this assembly in global assembly cache ( by .net configuration...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.