I know how to get the version of an executing application or dll. However I need to find the properties of a non executing application.
I have a small program to
You can use FileVersionInfo.GetVersionInfo()
:
FileVersionInfo vi = FileVersionInfo.GetVersionInfo("myfile.dll");
string showVersion = vi.FileVersion;
//showVersion is the actual version No.
This returns file/document metadata and can be used for unmanaged DLLs or even word documents as well.
You can also use Assembly:
Version v = Assembly.ReflectionOnlyLoadFrom("myfile.dll").GetName().Version;
This will contain .NET version information.