@joebigelow / wix / commits / 647843e5

Add error messages for source file command line processing

Rob Mensching committed Jul 31, 2018 at 15:28 UTC 647843e5c749c8cdabad423a33197056ed1fb1d0
2 files changed +13 -1
src/WixToolset.Data/ErrorMessages.cs
+12 -1
@@ -3,7 +3,6 @@
3 namespace WixToolset.Data
4 {
5 using System;
6 - using System.Collections;
6 using System.Collections.Generic;
7 using System.Resources;
8
@@ -2225,6 +2224,16 @@ namespace WixToolset.Data
2224 return Message(null, Ids.WrongFileExtensionForNumberOfInputs, "The extension '{0}' on the input specified '{1}' does not match the number of inputs required to handle an input with this extension. Check if you are missing an input or have too many.", inputExtension, input);
2225 }
2226
2227 + public static Message NoSourceFiles()
2228 + {
2229 + return Message(null, Ids.NoSourceFiles, "No source files specified.");
2230 + }
2231 +
2232 + public static Message WixiplSourceFileIsExclusive()
2233 + {
2234 + return Message(null, Ids.WixiplSourceFileIsExclusive, "When an intermediate post link source file is specified, it must be the only source file provided.");
2235 + }
2236 +
2237 private static Message Message(SourceLineNumber sourceLineNumber, Ids id, string format, params object[] args)
2238 {
2239 return new Message(sourceLineNumber, MessageLevel.Error, (int)id, format, args);
@@ -2618,6 +2627,8 @@ namespace WixToolset.Data
2627 InsecureBundleFilename = 388,
2628 PayloadMustBeRelativeToCache = 389,
2629 MsiTransactionX86BeforeX64 = 390,
2630 + NoSourceFiles = 391,
2631 + WixiplSourceFileIsExclusive = 392,
2632 }
2633 }
2634 }
src/WixToolset.Data/FileStructure.cs
+1
@@ -23,6 +23,7 @@ namespace WixToolset.Data
23 {
24 { "wir", FileFormat.WixIR },
25 { "wixirf", FileFormat.WixIR },
26 + { "wixipl", FileFormat.WixIR },
27 { "wixobj", FileFormat.Wixobj },
28 { "wixlib", FileFormat.Wixlib },
29 { "wixout", FileFormat.Wixout },