If you want to know the version of currently executing managed assembly, you can use Reflection.Assembly.
Here is code snippet which can be used to do get managed assembly version.
private string GetVersion()
That is the assembly version. How do you get the file version? They are two different things.