Strange issue when using ManagedAction

Mar 22, 2015 at 9:29 AM
I have a strange issue when using a ManagedAction in VS WixSharp project (.NET 4.0 console + nuget package WixSharp)

When I try to build the project, I get an error :
Can not find file WixIIsExtension.dll in c:\test\testwixmanagedaction

As far as I know, my Wix project does not contain anything requiring IisExtensions (it does not contain code for creating IIs application or so).

When I copy the WixIISExtension.dll in the project folder, everything compiles, and the setup seems to work (managed action is executing en performing as expected).

But why is there a dependency on WixIISExtension.dll ?

The only thing my managedaction does is setting an property:
[CustomAction]
public static ActionResult GetMyProperty(Session session)
{
   session["MyProperty"] = "TestValue";
   return ActionResult.Success;
}
var project = new Project 
{
    Name="...",
    Dirs = ...,
    Properties =  new [] { new Property("MyProperty","DefaultValue") },
   Actions = new WixSharp.Action[] 
    {
       new ManagedAction("GetMyProperty",Return.check,When.Before,Step.LaunchConditions,Condition.NOT_BeingRemoved,Sequence.InstallUISequence)
    }
}
Mar 22, 2015 at 11:55 AM
It was an extremely silly mistake in the implementation of DefaultRefAssemblies, which pointed the property to the WixExtensions list.
The problem is fixed (v1.0.9.1) and the faulty release (v1.0.9.0) is removed.
Mar 22, 2015 at 1:07 PM
Ok thx for the excellent support!