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

One thought on “CSharp – Get Assembly and File Version”

Leave a Reply

Your email address will not be published.