Tried this in m.p.framework a couple of days ago with no response. I'll try here:
I'm loading an assembly from a URL using Assembly.LoadFrom().
Is there any way to tell if the current version of the assembly
already existed in the application download cache.
I need to do an expensive operation each time the assembly changes,
but I'd like to avoid it if the assembly hasn't changed (although
functionally it works if I do it every time I load it).
If there's not an automatic way, I guess I write logic to manually
check the timestamp of the assembly on the server and compare it
against a locally stored timestamp. I'd rather not have to do that
though.
Thanks for any help!
Conrad Zhang - 11 Sep 2003 06:27 GMT
If it is not strongly named, then the bits will be downloaded everytime.
If it is strongly named, and the version number does not change, the bits in
download cache will be used, regardless the bits in server have been changed
or not.
Alan's Blog describes exactly how the framework http download works.
http://blogs.gotdotnet.com/alanshi/commentview.aspx/d3b8c7d9-b0c6-47fd-8ddf-20db
971ba80d
Hope that helps.
> Tried this in m.p.framework a couple of days ago with no response. I'll try here:
>
[quoted text clipped - 13 lines]
>
> Thanks for any help!