Adjust version lookup to use file version info stamp which is automatically incremented/generated by engineering system.

This commit is contained in:
Michael Niksa 2018-10-02 11:18:00 -07:00
parent e5aa14ea7b
commit 2791753780

View file

@ -123,9 +123,9 @@ namespace ColorTool
static void Version()
{
string exePath = System.Reflection.Assembly.GetEntryAssembly().Location;
Version ver = AssemblyName.GetAssemblyName(exePath).Version;
Console.WriteLine("colortool v" + ver);
var assembly = System.Reflection.Assembly.GetExecutingAssembly();
var info = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location);
Console.WriteLine($"colortool v{info.FileVersion}");
}
static void PrintTable()