473,466 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Assemblies versionning details

Hello all,

In this article (http://msdn.microsoft.com/msdnmag/is...3/buildapps2/),
it is said in the "Version numbers" paragraph :

"However, if the runtime sees that there are [in the GAC] two
assemblies with the same major.minor version, the runtime will bind to
the assembly with the latest build.revision. In other words, the
runtime will bind to version 2.5.719.5 even if the application was
bound to version 2.5.100.7 when it was built"

Although this article is written by Richter himself, it is quite old
and based on beta 1 version of the framework. I couldn't locate any
other article that explains clearly what part of the version number is
used when binding to an assembly : is it all the four numbers of the
version, or just the major / minor pair?

Say I have my A.exe app installed, which installs "shared.dll"
assembly version 1.5.0.1 in the GAC. What happens if, afterwards, my
B.exe application installs shared.dll version 1.5.0.2? Which version
of shared.dll will be used by A.exe? It can makes a huge difference on
versionning policy when building shared assemblies!

Thanks,

Arnaud
MVP - VC
Jul 21 '05 #1
3 1103
Arnaud,
I couldn't locate any
other article that explains clearly what part of the version number is
used when binding to an assembly : is it all the four numbers of the
version, or just the major / minor pair?
All four.

Say I have my A.exe app installed, which installs "shared.dll"
assembly version 1.5.0.1 in the GAC. What happens if, afterwards, my
B.exe application installs shared.dll version 1.5.0.2? Which version
of shared.dll will be used by A.exe?


Nothing should happen. A.exe continues to load 1.5.0.1.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
Jul 21 '05 #2
Arnaud Debaene wrote:
Although this article is written by Richter himself, it is quite old
and based on beta 1 version of the framework. I couldn't locate any
I guess this was a beta 1 'feature'.
other article that explains clearly what part of the version number is
used when binding to an assembly : is it all the four numbers of the
version, or just the major / minor pair?
Unless you use a config file or a policy file, the process picks up the
*exact* version mentioned in the manifest of the process

Say I have my A.exe app installed, which installs "shared.dll"
assembly version 1.5.0.1 in the GAC. What happens if, afterwards, my
B.exe application installs shared.dll version 1.5.0.2? Which version
of shared.dll will be used by A.exe? It can makes a huge difference on
versionning policy when building shared assemblies!


it will load 1.5.0.1, if you remove this version from the GAC then a
FileLoadException will be thrown - the runtime will not attempt to load
1.5.0.2

Richard
--
my email ev******@zicf.bet is encrypted with ROT13 (www.rot13.org)
Jul 21 '05 #3
Arnaud Debaene wrote:
Hello all,

Ok, thanks to all

Arnaud
Jul 21 '05 #4

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

Similar topics

1
by: Silvia | last post by:
I have this code in web.config file <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="dllredirect"/> <codeBase...
6
by: Tom Dacon | last post by:
If you're not putting assemblies in the GAC, but are referencing shared code with copylocal=true into the projects that use them, is there any value to signing the assemblies? In the environment...
3
by: Tim Marsden | last post by:
Hi, I am having difficulties understanding the use of the cache in my profile (C:\Documents and Settings\username\Local Settings\Application Data\assembly\dl2) My application seems to be using...
9
by: Invalidlastname | last post by:
Hi, We developed some assemblies which use EnterpriseServices queued components. In order to use EnterpriseServices, these assemblies need to be installed into GAC. I used the pre-build and...
5
by: Raterus | last post by:
I'm just throwing this error out for my sanity, I've seen posts about this, but never solutions. I'm using VS.NET 2003, Framework 1.1, and I'm getting a random error about every 1 out of 10 times...
3
by: Sam-I-Am | last post by:
Hi all I have a common shared assembly in intalled in the GAC: myco.myprod.common.dll I have set a reference to this assembly in a asp.net web application. I have config sections in my...
3
by: Arnaud Debaene | last post by:
Hello all, In this article (http://msdn.microsoft.com/msdnmag/issues/01/03/buildapps2/), it is said in the "Version numbers" paragraph : "However, if the runtime sees that there are two...
2
by: Luis Arvayo | last post by:
Actually it is: How to define the plugin assemblies path in order to find other assemblies which the plugin depends on. Example: If I have: c:\myapp\application.exe
2
by: DougS | last post by:
I have an ASP.Net 1.1 app running on my intranet. I want to be able to output a report in Word. I have a .Net dll written for a similar WinForms application. Can I install the Word Interop...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.