PC Review


Reply
Thread Tools Rate Thread

GAC and class library mechanisms how does it work?

 
 
Jens H. Hamann
Guest
Posts: n/a
 
      24th Feb 2005
Hello group,

Is there anyone here that knows of a good article/whitepaper that explains
how the GAC and libraries work in the .NET framework?



I just don't understand the mechanisms behind it. The problem I am facing is
that it seems like an application and libraries are undividable.



I create an application version 1.0.0.0 that uses library 1.0.0.0. Now I
update the library with some functionality and maybe even a new public
method the version of the library is now incremented to 1.0.1.0.



If the library is not in the GAC but in the same directory as the
application it works fine the new version 1.0.1.0 if used without any
problems. But I don't want that scenario as I am using the same libraries
across many applications.



If the library is put into the GAC there are now two entries in the GAC
1.0.0.0 and 1.0.1.0 but the application is using 1.0.0.0 until it is
recompiled to use 1.0.1.0.

I guess this behavior is intended but it forces me to recompile all projects
that use a specific library if there was a bug fix or update to it.



I would prefer the old COM style where I can update just the library and all
applications using this object will automatically use the newest version, is
this in any way possible with a .NET class library?



I reckon it has something to do with the strongname because as soon as there
is a strongname associated with the library it is undividable with the
application. But the strongname is needed to put it into the GAC.







Any hints tips and articles are welcome, thanks



Jens Hamann

Agramkow Fluid Systems A/S

Email: __JHH@__agramkow.__dk (without underscores)


 
Reply With Quote
 
 
 
 
Mattias Sjögren
Guest
Posts: n/a
 
      24th Feb 2005

>Is there anyone here that knows of a good article/whitepaper that explains
>how the GAC and libraries work in the .NET framework?


http://www.grimes.demon.co.uk/workshops/fusionWS.htm


>If the library is put into the GAC there are now two entries in the GAC
>1.0.0.0 and 1.0.1.0 but the application is using 1.0.0.0 until it is
>recompiled to use 1.0.1.0.


You can use binding redirects and publisher policy to overrride that.



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
Reply With Quote
 
Jens H. Hamann
Guest
Posts: n/a
 
      24th Feb 2005
Thanks for you time Mattias!
I will read the given workshop files and hopefully they will help me
understand.

jens

"Mattias Sjögren" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
>>Is there anyone here that knows of a good article/whitepaper that explains
>>how the GAC and libraries work in the .NET framework?

>
> http://www.grimes.demon.co.uk/workshops/fusionWS.htm
>
>
>>If the library is put into the GAC there are now two entries in the GAC
>>1.0.0.0 and 1.0.1.0 but the application is using 1.0.0.0 until it is
>>recompiled to use 1.0.1.0.

>
> You can use binding redirects and publisher policy to overrride that.
>
>
>
> Mattias
>
> --
> Mattias Sjögren [MVP] mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic How To Question: Class Library or Windows Control Library eBob.com Microsoft VB .NET 3 20th Feb 2006 09:12 PM
Class Library in CF vs Windows Class Library TechGladiator Microsoft Dot NET Compact Framework 3 27th Jan 2006 01:55 AM
Control does not work in a class library... Mobile Boy 36 Microsoft Dot NET Compact Framework 0 25th Mar 2005 11:35 AM
Re: Difference between Web Control Library and Class Library Alan Ferrandiz [MCT] Microsoft ASP .NET 0 11th Sep 2004 03:51 PM
Big Faceless PDF Library 2.2.3 - A Java class library for importing and creating PDF documents. Gordon Darling Freeware 0 13th Jul 2004 10:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:14 PM.