Hi,
When using the sample source code for consuming MergeModules, I do not receive any errors:
.
.
.
var project =
.
.
However, if I was to remove "new File(featureA, @"Files\MainFile.txt")" so that the project only contains the install directory and the merge modules, I get the following error:
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
at WixSharp.Compiler.GetTopLevelDir(XElement product)
at WixSharp.Compiler.GenerateWixProj(Project project)
at WixSharp.Compiler.BuildWxs(Project project, String path, OutputType type)
at WixSharp.Compiler.BuildWxs(Project project, OutputType type)
at CommonLibrary.WixUtils.WixProject.BuildWxsFile(Package package) in U:\Bare
Metal-Windows\CommonLibrary\WixUtils\WixProject.cs:line 84
Do we have to include a directory or a file in the project along with the reference to the merge modules, in order to create an MSI? Is this a bug?
Thanks!
When using the sample source code for consuming MergeModules, I do not receive any errors:
.
.
.
var project =
new Project("MyMergeModuleSetup",
new Dir(@"%ProgramFiles%\My Company",
new File(featureA, @"Files\MainFile.txt"),
new Merge(featureB, @"Files\MyMergeModule.msm"),
new Merge(featureB, @"Files\MyMergeModule1.msm")));
..
.
However, if I was to remove "new File(featureA, @"Files\MainFile.txt")" so that the project only contains the install directory and the merge modules, I get the following error:
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
at WixSharp.Compiler.GetTopLevelDir(XElement product)
at WixSharp.Compiler.GenerateWixProj(Project project)
at WixSharp.Compiler.BuildWxs(Project project, String path, OutputType type)
at WixSharp.Compiler.BuildWxs(Project project, OutputType type)
at CommonLibrary.WixUtils.WixProject.BuildWxsFile(Package package) in U:\Bare
Metal-Windows\CommonLibrary\WixUtils\WixProject.cs:line 84
Do we have to include a directory or a file in the project along with the reference to the merge modules, in order to create an MSI? Is this a bug?
Thanks!