is it possible to check "download group" or dll. file version before download
Hi,
I am developing an app. and deploying it with clickOnce. The app. needs 3 extra dll's to work. 2 of the dll's are not changing frequently and their sizes are big ( approximately 2-3 MBs). Even I don't change the version numbers of these dll's they are downloaded with the whole package. Is it the default response for the clickOne API. If so, is it possible to check the remote files' versions before downloading them (i couldn't see any method like "checkFileVersion" in System.Deployment namespace).
Thanks very much.
[540 byte] By [
ueo] at [2007-12-17]
ClickOnce does not download files that have not changed in the next version. It simply copies them from the cache over to the next version. This is called file patching. To determine if a file needs to be downloaded ClickOnce compares the hash of the previous version to the hash of the file specified in the new versions manifest file. If the hash does not match the file is downloaded.
In case of assemblies, everytime you re-build an assembly it's hash will change; even if the dll itself does. This might be the reason that they are being downloaded for every version. Can you try not re-building the dlls that don't change.
Thanks,
Sameer