Hi
I am having a problem using the Event Source element from the util Extension assembly.
My C# code
Does anyone know how to make this work in any way? It would also be nice to know to use all the other wix extension that are not yet in the Wix# code.
Have a great day,
Tomas
I am having a problem using the Event Source element from the util Extension assembly.
My C# code
static void Main(string[] args)
{
var project = new Project("NamespaceTest", new Dir(@"%ProgramFiles%\Test") {IsInstallDir = true});
project.IncludeWixExtension(WixExtension.Util);
project.AddXmlInclude(@"C:\Temp\EventRegistration.wxi");
Compiler.BuildMsi(project);
}
and my wxi file.<Include>
<Component Id="EventSourceId" Guid="{FFFFFFFF-F53E-48A2-B24B-9D410448FC39}" KeyPath="yes" SharedDllRefCount="yes" Directory="INSTALLDIR">
<util:EventSource Name="Custom Event Source" Log="Application" EventMessageFile="SomeAssembly.dll" />
</Component>
</Include>
When I compile and run the code I the build fails and says 'util' is an undeclared prefix in file. When i look in the generated .wxs file the namespace is missing in the Wix element event though i set it to include the extension.Does anyone know how to make this work in any way? It would also be nice to know to use all the other wix extension that are not yet in the Wix# code.
Have a great day,
Tomas