diff options
author | Rob Mensching <rob@firegiant.com> | 2017-12-27 22:58:19 -0800 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2017-12-27 22:58:19 -0800 |
commit | 58b8be53fd966e3d475362912477a422f5b5aa11 (patch) | |
tree | d6bb3edd0d4e7344777de802b32151f35987884a /src/WixToolset.Core | |
parent | fe7112d862cab6ba28ee40e5539de8e297e0bbf2 (diff) | |
download | wix-58b8be53fd966e3d475362912477a422f5b5aa11.tar.gz wix-58b8be53fd966e3d475362912477a422f5b5aa11.tar.bz2 wix-58b8be53fd966e3d475362912477a422f5b5aa11.zip |
Correctly join command line arguments and other small clean up and optimizations
Diffstat (limited to 'src/WixToolset.Core')
-rw-r--r-- | src/WixToolset.Core/CommandLine/CommandLineParser.cs | 2 | ||||
-rw-r--r-- | src/WixToolset.Core/Librarian.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/WixToolset.Core/CommandLine/CommandLineParser.cs b/src/WixToolset.Core/CommandLine/CommandLineParser.cs index 017810e0..3c7f3d1e 100644 --- a/src/WixToolset.Core/CommandLine/CommandLineParser.cs +++ b/src/WixToolset.Core/CommandLine/CommandLineParser.cs | |||
@@ -54,7 +54,7 @@ namespace WixToolset.Core.CommandLine | |||
54 | 54 | ||
55 | if (!String.IsNullOrEmpty(context.Arguments)) | 55 | if (!String.IsNullOrEmpty(context.Arguments)) |
56 | { | 56 | { |
57 | args = CommandLineParser.ParseArgumentsToArray(context.Arguments).Union(args).ToArray(); | 57 | args = CommandLineParser.ParseArgumentsToArray(context.Arguments).Concat(args).ToArray(); |
58 | } | 58 | } |
59 | 59 | ||
60 | return this.ParseStandardCommandLine(context, args); | 60 | return this.ParseStandardCommandLine(context, args); |
diff --git a/src/WixToolset.Core/Librarian.cs b/src/WixToolset.Core/Librarian.cs index 3e843070..f4191e86 100644 --- a/src/WixToolset.Core/Librarian.cs +++ b/src/WixToolset.Core/Librarian.cs | |||
@@ -143,7 +143,7 @@ namespace WixToolset.Core | |||
143 | 143 | ||
144 | foreach (var tuple in sections.SelectMany(s => s.Tuples)) | 144 | foreach (var tuple in sections.SelectMany(s => s.Tuples)) |
145 | { | 145 | { |
146 | foreach (var field in tuple.Fields.Where(f => f.Type == IntermediateFieldType.Path)) | 146 | foreach (var field in tuple.Fields.Where(f => f?.Type == IntermediateFieldType.Path)) |
147 | { | 147 | { |
148 | var pathField = field.AsPath(); | 148 | var pathField = field.AsPath(); |
149 | 149 | ||