Custom Action in C# used via WiX fails with error 1154

后端 未结 8 789
傲寒
傲寒 2020-12-09 17:19

I am using WiX 3.5.1930 in Visual Studio 2010, targeting the .NET Framework 3.5. (Later weekly builds of WiX seem to be very broken with respect to their custom action temp

8条回答
  •  被撕碎了的回忆
    2020-12-09 17:40

    I just found the same issue (using the correct .CA.dll file) and in my case it was because I wasn't using a static method. I had this:

    public ActionResult MyMethod(Session session)
    

    Instead of this:

    public static ActionResult MyMethod(Session session)
    

    After changing the method it worked just fine.

    Hope it helps someone.

提交回复
热议问题