jeeejay
14 years agoContributor
Getting file version of GAC entries
Hi,
When we work on service packs or patches of our software, we are required to verify whether the file version of certain dll's have been updated as expected. To go through the whole list of files manually is very time consuming and error prone, so we decided to automate it.
I am able to use the GetFileVersion method of FileSystemObject without any issues for files that are present under the C:\Program Files\Application\Bin directory however; I would like to know of a similar approach to get the versions of the assemblies that get registered in the GAC when our application is installed.
As a workaround, I open the 'assembly' window and from the 'Run' window and read the contents of the 'Version' column to get the job done but it would be good to know a non-GUI based alternative like the one above.
Thanks and Regards,
GJ
When we work on service packs or patches of our software, we are required to verify whether the file version of certain dll's have been updated as expected. To go through the whole list of files manually is very time consuming and error prone, so we decided to automate it.
I am able to use the GetFileVersion method of FileSystemObject without any issues for files that are present under the C:\Program Files\Application\Bin directory however; I would like to know of a similar approach to get the versions of the assemblies that get registered in the GAC when our application is installed.
As a workaround, I open the 'assembly' window and from the 'Run' window and read the contents of the 'Version' column to get the job done but it would be good to know a non-GUI based alternative like the one above.
Thanks and Regards,
GJ