We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e5aa14e + 2791753 commit bb795f5Copy full SHA for bb795f5
tools/ColorTool/ColorTool/Program.cs
@@ -123,9 +123,9 @@ static void OutputUsage()
123
124
static void Version()
125
{
126
- string exePath = System.Reflection.Assembly.GetEntryAssembly().Location;
127
- Version ver = AssemblyName.GetAssemblyName(exePath).Version;
128
- 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}");
129
}
130
131
static void PrintTable()
0 commit comments