diff options
Diffstat (limited to 'src/WixToolset.Core/CommandLine/BuildCommand.cs')
-rw-r--r-- | src/WixToolset.Core/CommandLine/BuildCommand.cs | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/src/WixToolset.Core/CommandLine/BuildCommand.cs b/src/WixToolset.Core/CommandLine/BuildCommand.cs index 972258fe..5ee60984 100644 --- a/src/WixToolset.Core/CommandLine/BuildCommand.cs +++ b/src/WixToolset.Core/CommandLine/BuildCommand.cs | |||
@@ -100,29 +100,38 @@ namespace WixToolset.Core.CommandLine | |||
100 | 100 | ||
101 | if (this.OutputType == OutputType.Library) | 101 | if (this.OutputType == OutputType.Library) |
102 | { | 102 | { |
103 | var wixlib = this.LibraryPhase(wixobjs, wxls, this.commandLine.BindFiles, this.commandLine.BindPaths); | 103 | using (new IntermediateFieldContext("wix.lib")) |
104 | |||
105 | if (!this.Messaging.EncounteredError) | ||
106 | { | 104 | { |
107 | wixlib.Save(this.commandLine.OutputFile); | 105 | var wixlib = this.LibraryPhase(wixobjs, wxls, this.commandLine.BindFiles, this.commandLine.BindPaths); |
106 | |||
107 | if (!this.Messaging.EncounteredError) | ||
108 | { | ||
109 | wixlib.Save(this.commandLine.OutputFile); | ||
110 | } | ||
108 | } | 111 | } |
109 | } | 112 | } |
110 | else | 113 | else |
111 | { | 114 | { |
112 | if (wixipl == null) | 115 | using (new IntermediateFieldContext("wix.link")) |
113 | { | ||
114 | wixipl = this.LinkPhase(wixobjs, this.commandLine.LibraryFilePaths, creator); | ||
115 | } | ||
116 | |||
117 | if (!this.Messaging.EncounteredError) | ||
118 | { | 116 | { |
119 | if (this.OutputType == OutputType.IntermediatePostLink) | 117 | if (wixipl == null) |
120 | { | 118 | { |
121 | wixipl.Save(this.commandLine.OutputFile); | 119 | wixipl = this.LinkPhase(wixobjs, this.commandLine.LibraryFilePaths, creator); |
122 | } | 120 | } |
123 | else | 121 | |
122 | if (!this.Messaging.EncounteredError) | ||
124 | { | 123 | { |
125 | this.BindPhase(wixipl, wxls, filterCultures, this.commandLine.CabCachePath, this.commandLine.BindPaths, this.commandLine.BurnStubPath); | 124 | if (this.OutputType == OutputType.IntermediatePostLink) |
125 | { | ||
126 | wixipl.Save(this.commandLine.OutputFile); | ||
127 | } | ||
128 | else | ||
129 | { | ||
130 | using (new IntermediateFieldContext("wix.bind")) | ||
131 | { | ||
132 | this.BindPhase(wixipl, wxls, filterCultures, this.commandLine.CabCachePath, this.commandLine.BindPaths, this.commandLine.BurnStubPath); | ||
133 | } | ||
134 | } | ||
126 | } | 135 | } |
127 | } | 136 | } |
128 | } | 137 | } |
@@ -469,6 +478,7 @@ namespace WixToolset.Core.CommandLine | |||
469 | break; | 478 | break; |
470 | } | 479 | } |
471 | 480 | ||
481 | case "bf": | ||
472 | case "bindfiles": | 482 | case "bindfiles": |
473 | this.BindFiles = true; | 483 | this.BindFiles = true; |
474 | return true; | 484 | return true; |