aboutsummaryrefslogtreecommitdiff
path: root/src/wixcop/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixcop/Program.cs')
-rw-r--r--src/wixcop/Program.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wixcop/Program.cs b/src/wixcop/Program.cs
index e2174272..5e72f8ea 100644
--- a/src/wixcop/Program.cs
+++ b/src/wixcop/Program.cs
@@ -3,6 +3,7 @@
3namespace WixToolset.Tools.WixCop 3namespace WixToolset.Tools.WixCop
4{ 4{
5 using System; 5 using System;
6 using System.Diagnostics;
6 using WixToolset.Core; 7 using WixToolset.Core;
7 using WixToolset.Extensibility; 8 using WixToolset.Extensibility;
8 using WixToolset.Extensibility.Data; 9 using WixToolset.Extensibility.Data;
@@ -54,6 +55,17 @@ namespace WixToolset.Tools.WixCop
54 var commandLine = serviceProvider.GetService<IWixCopCommandLineParser>(); 55 var commandLine = serviceProvider.GetService<IWixCopCommandLineParser>();
55 commandLine.Arguments = arguments; 56 commandLine.Arguments = arguments;
56 var command = commandLine.ParseWixCopCommandLine(); 57 var command = commandLine.ParseWixCopCommandLine();
58
59 if (command.ShowLogo)
60 {
61 var wixcopAssembly = this.GetType().Assembly;
62 var fv = FileVersionInfo.GetVersionInfo(wixcopAssembly.Location);
63
64 Console.WriteLine("WiX Cop version {0}", fv.FileVersion);
65 Console.WriteLine("Copyright (C) .NET Foundation and contributors. All rights reserved.");
66 Console.WriteLine();
67 }
68
57 return command?.Execute() ?? 1; 69 return command?.Execute() ?? 1;
58 } 70 }
59 catch (Exception e) 71 catch (Exception e)