tags:

views:

154

answers:

1

You can do the following to get the the File Version:

FileVersionInfo versionInfo = FileVersionInfo.GetVersionInfo("filename.exe");

But how do you get the Assembly Version or a specific EXE file?

+4  A: 

From here: http://blogs.msdn.com/alejacma/archive/2008/09/05/how-to-get-assembly-version-without-loading-it.aspx

AssemblyName.GetAssemblyName("filename.exe").Version

This avoids having to load the assembly in its entirity.

Daniel Renshaw