A
Arnaud Debaene
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 [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
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 [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