CSharp – Get Assembly and File Version

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();
}


Comments

One response to “CSharp – Get Assembly and File Version”

Leave a Reply