I have few dlls in a network folder where I will have new versions. When I run my application I want to check if there are a new version, so I get the version of the dll that is in the network folder.
Imagine that the dll has a size of 3MB. To get the version of the dll I have to download the 3MB of the dll to the local computer that runs the application or when I get the version can get if if needed to transfer all the dll?
Because if I have to transfer all the 3MB, I was thinking to have a text file with the version of the dll to avoid to get all the dll to only check the version, because how I have few dlls could be slow the start up of the application and I would like to avoid this, and save data if the user is using a mobile data connection.
The way that I am getting the version of a dll is with this code:
Assembly assembly = Assembly.LoadFrom(myPathToDll);
Version ver = assembly.GetName().Version;
Thanks.