mirror of
https://github.com/microsoft/terminal.git
synced 2026-07-08 17:46:05 +00:00
Merge pull request #266 from Microsoft/version
Correct version lookup for ES autoincremented value
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user