Reputation: 2604
I have a .Net project where we access COM objects written in C++.
In my About box (in the .Net part) I wish to display the version of the used COM objects.
I currently have version info on the COM objects (visible in Windows Explorer->Properties->Version).
How can I read the version (and preferably Copyright ect) from C# code?
Thanks for any input,
Anders, Denmark
Upvotes: 2
Views: 236
Reputation: 23266
FileVersionInfo fileVersion = FileVersionInfo.GetVersionInfo(path);
string version = string.Format("Version {0}",fileVersion.FileVersion);
Upvotes: 1