diff options
Diffstat (limited to 'src/WixToolset.Core/AppCommon.cs')
-rw-r--r-- | src/WixToolset.Core/AppCommon.cs | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/WixToolset.Core/AppCommon.cs b/src/WixToolset.Core/AppCommon.cs deleted file mode 100644 index 7f54b057..00000000 --- a/src/WixToolset.Core/AppCommon.cs +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Core | ||
4 | { | ||
5 | using System; | ||
6 | using System.Reflection; | ||
7 | |||
8 | /// <summary> | ||
9 | /// Common utilities for Wix applications. | ||
10 | /// </summary> | ||
11 | public static class AppCommon | ||
12 | { | ||
13 | /// <summary> | ||
14 | /// Creates and returns the string for CreatingApplication field (MSI Summary Information Stream). | ||
15 | /// </summary> | ||
16 | /// <remarks>It reads the AssemblyProductAttribute and AssemblyVersionAttribute of executing assembly | ||
17 | /// and builds the CreatingApplication string of the form "[ProductName] ([ProductVersion])".</remarks> | ||
18 | /// <returns>Returns value for PID_APPNAME."</returns> | ||
19 | public static string GetCreatingApplicationString() | ||
20 | { | ||
21 | var assembly = Assembly.GetExecutingAssembly(); | ||
22 | return WixDistribution.ReplacePlaceholders("[AssemblyProduct] ([FileVersion])", assembly); | ||
23 | } | ||
24 | |||
25 | /// <summary> | ||
26 | /// Displays help message header on Console for caller tool. | ||
27 | /// </summary> | ||
28 | public static void DisplayToolHeader() | ||
29 | { | ||
30 | var assembly = Assembly.GetCallingAssembly(); | ||
31 | Console.WriteLine(WixDistribution.ReplacePlaceholders("[AssemblyProduct] [AssemblyDescription] version [FileVersion]", assembly)); | ||
32 | Console.WriteLine(WixDistribution.ReplacePlaceholders("[AssemblyCopyright]", assembly)); | ||
33 | } | ||
34 | |||
35 | /// <summary> | ||
36 | /// Displays help message header on Console for caller tool. | ||
37 | /// </summary> | ||
38 | public static void DisplayToolFooter() | ||
39 | { | ||
40 | var assembly = Assembly.GetCallingAssembly(); | ||
41 | Console.WriteLine(); | ||
42 | Console.WriteLine(WixDistribution.ReplacePlaceholders("For more information see: [SupportUrl]", assembly)); | ||
43 | } | ||
44 | } | ||
45 | } | ||