1

Closed

Util Extension problems

description

Hi

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
Closed Dec 3, 2016 at 9:22 AM by oleg_s
Fixed in v1.1

comments

oleg_s wrote Sep 28, 2016 at 2:07 AM

Fixed with cl#328b6c3f66a8.

oleg_s wrote Oct 26, 2016 at 3:09 AM

Fixed, prepared for release