You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having issues building an msi out of several merge modules, while at the same time adding an environment variable to the project object. Here's what I'm trying to do:
If I run this code, I end up with the following error:
Unhandled Exception: System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.First[TSource](IEnumerable1 source) at WixSharp.Compiler.GetTopLevelDir(XElement product) at WixSharp.Compiler.ProcessEnvVars(Project wProject, Dictionary2 featureComponents, List`1 defaultFeatureComponents
, 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 WixSharp.Compiler.Build(Project project, String path, OutputType type)
at WixSharp.Compiler.Build(Project project, OutputType type)
at WixSharp.Compiler.BuildMsi(Project project)
at WixSharp.Project.BuildMsi(String path)
at BlastZone.Program.Main(String[] args) in C:\Users\user\Documents\Visual Studio 2015\Projects\BlastZone\BlastZone
\Program.cs:line 27
However, I don't get this error if I add a File object like so:
I've been able to work around the issue be modifying the WiX directly, so I know this it's possible to do what I'm seeking. Is the requirement on a File object in the install Directory intended, or is it a bug?
Thanks.
The text was updated successfully, but these errors were encountered:
I'm having issues building an msi out of several merge modules, while at the same time adding an environment variable to the project object. Here's what I'm trying to do:
If I run this code, I end up with the following error:
However, I don't get this error if I add a File object like so:
I've been able to work around the issue be modifying the WiX directly, so I know this it's possible to do what I'm seeking. Is the requirement on a File object in the install Directory intended, or is it a bug?
Thanks.
The text was updated successfully, but these errors were encountered: