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()
{
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
That is the assembly version. How do you get the file version? They are two different things.