PublisherPolicy seems to be the way to go. Thanks Alberto!! I did
know about redirects and publisher policies but for some reason the
latter slipped my mind.
Are you saying that if I end up having something like this in code:
Assembly.Load("someassembly,version=1.0.0.0......");
and the vendor deploys someassembly ver 1.1.0.0, the publisher policy
will ensure that all requests for 1.0.0.0 versions are redirected to
the new ones?
OK. That seems nice. What if he comes up with 1.3.0.0 later? In
other words is there a way in the publisher policy to redirect a
*range* of older versions to the latest version installed by the
vendor?
On Mar 19, 1:35 pm, "Alberto Poblacion" <earthling-
quitaestoparacontes...@poblacion.org> wrote:
> PublisherPolicy seems to be the way to go. Thanks Alberto!! I did
> know about redirects and publisher policies but for some reason the
[quoted text clipped - 7 lines]
> will ensure that all requests for 1.0.0.0 versions are redirected to
> the new ones?
I believe it should work, although I have only tried it out with
statically linked assemblies. If you need to debug the fusion process, you
can use the Fusion Log Viewer (FUSLOGVW,EXE), which will show you the
complete process of searching for an assembly, the places where the runtime
is looking for it, the policies that are aplied, and so on.
> OK. That seems nice. What if he comes up with 1.3.0.0 later? In
> other words is there a way in the publisher policy to redirect a
> *range* of older versions to the latest version installed by the
> vendor?
The BindingPolicy allows a range of versions such as 1.2.3.4-1.9.9.9 for
the RequestedVersion, but the NewVersion has to be a specific one, such as
2.0.1.2. So you can redirect a range of older versions to a new one, but you
can't specify thet the "new one" always be automatically the latest.