Tag Archives: AssemblyVersion

c# – Get Product Version and Assembly Version of external application

Sometimes it is needed to know version of external application’s  Product Version or Assembly Version. It is actually very easy task. using System; using System.Diagnostics; using System.Reflection; namespace GetAppVersion { class Program { static void Main(string[] args) { if (args.Length == 0) { System.Console.WriteLine(“Please enter program path.”); return; } try { var versionInfo = FileVersionInfo.GetVersionInfo(args[0]); Console.WriteLine($”ProductVersion: {versionInfo.ProductVersion}”);… Read More »