Jeroen,

If you do a search for Fusion on MSDN or Google, you'll find some code that
describes how to access the GAC using a very unknown API.  I've taken the
code and made a little admin program that I use to clean up my GAC, but the
fusion library that I've downloaded can both add and delete entries from the
GAC.  If you can't find this in your search, let me know and I'll forward
you the code.

Nick.

-----Original Message-----
From: Jeroen van den Bos (DT) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 5:03 AM
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] Adding assemblies to the GAC using the class
library

Hi all,

In the MSDN docs (in article "Installing an Assembly into the Global
Assembly Cache") I read that to install assemblies in the GAC you have to
either create an installer 2.0 project or use gacutil.

However, since .NET 1.1 there is a class called Publish in
System.EnterpriseServices.Internal that has methods to do this as well
(specifically, GacInstall() and GacRemove()). The original function of the
class is to assist in publishing COM interfaces for COM+ apps, but after
using those methods my conclusion is that it just works perfectly with any
assembly. Now I'm wondering: is the MSDN article outdated or is there a
reason not to use these methods that I'm not aware of?

Thanks for any help,
-Jeroen

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com NEW! ASP.NET
courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to