Re: GAC Preference Order
- From: "Ilya Tumanov [MS]" <ilyatum@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 7 Mar 2007 15:23:54 -0800
That situation is simply not possible. Application is compiled against
particular assembly version, that's the one it's going to use.
In this case if application is compiled:
1. against ABC.Business.dll with strong name version 1.0.100 it would
use this specific version or throw TypeLoadException if assembly is not
found.
2. against ABC.Business.dll with strong name version 1.0.110 it would
use this specific version or throw TypeLoadException if assembly is not
found.
3. against ABC.Business.dll with no version (not strong name signed,
can't be GAC'ed) it would use that none strong name signed version or throw
TypeLoadException if assembly is not found.
--
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights.
*** Want to find answers instantly? Here's how... ***
1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
"jminiman" <jaredscottmin@xxxxxxxxx> wrote in message
news:1173208127.665458.31560@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
All,
Let's say I have two versions of the same assembly installed into GAC:
- ABC.Business_v1.0.1000_cneutral.dll
and
- ABC.Business_v1.0.1100_cneutral.dll
And I have an application that uses the ABC.Business.dll with no
specification of version. Will the application always automatically
pick the GAC file with the higher version? Or will there possibly be
room for confusion?
I'm wondering if there's an easy way to clear out the old DLLs (but
not the entire GAC!) during a CAB installation routine.
.
- Follow-Ups:
- Re: GAC Preference Order
- From: jminiman
- Re: GAC Preference Order
- References:
- GAC Preference Order
- From: jminiman
- GAC Preference Order
- Prev by Date: Re: pinvoke WM5
- Next by Date: Re: PocketPC Outlook to parse Email Message.
- Previous by thread: GAC Preference Order
- Next by thread: Re: GAC Preference Order
- Index(es):