@joebigelow / wix / commits / afd296a6

Correctly pass -bindFiles switch if enabled

Rob Mensching committed Oct 2, 2017 at 00:02 UTC afd296a66f97ef94f26a375c3a71ed79ef95127d
1 file changed +6 -1
src/WixToolset.BuildTasks/DoIt.cs
+6 -1
@@ -88,9 +88,13 @@ namespace WixToolset.BuildTasks
88
89
90 public ITaskItem[] BindInputPaths { get; set; }
91 +
92 public bool BindFiles { get; set; }
93 +
94 public ITaskItem BindContentsFile { get; set; }
95 +
96 public ITaskItem BindOutputsFile { get; set; }
97 +
98 public ITaskItem BindBuiltOutputsFile { get; set; }
99
100 public string CabinetCachePath { get; set; }
@@ -148,11 +152,12 @@ namespace WixToolset.BuildTasks
152 commandLineBuilder.AppendSwitchIfNotNull("-outputsfile ", this.BindOutputsFile);
153 commandLineBuilder.AppendSwitchIfNotNull("-builtoutputsfile ", this.BindBuiltOutputsFile);
154 commandLineBuilder.AppendSwitchIfNotNull("-wixprojectfile ", this.WixProjectFile);
151 - commandLineBuilder.AppendTextIfNotWhitespace(this.AdditionalOptions);
155
156 + commandLineBuilder.AppendIfTrue("-bindFiles", this.BindFiles);
157 commandLineBuilder.AppendArrayIfNotNull("-bindPath ", this.CalculateBindPathStrings());
158 commandLineBuilder.AppendArrayIfNotNull("-loc ", this.LocalizationFiles);
159 commandLineBuilder.AppendArrayIfNotNull("-lib ", this.LibraryFiles);
160 + commandLineBuilder.AppendTextIfNotWhitespace(this.AdditionalOptions);
161 commandLineBuilder.AppendFileNamesIfNotNull(this.SourceFiles, " ");
162
163 var commandLineString = commandLineBuilder.ToString();