I try to add a custom action to a Installer Project. I added a Custom Action Project with following code:
public class CustomActions
{
[CustomAction]
public static ActionResult CustomAction1(Session session)
{
session.Log("Begin CustomAction1");
return ActionResult.Success;
}
}
In my installer Project, I added a reference to the CustomAction_project and added following entry to Custom Actions -> Install:
Name: Primary output from CustomAction (Active) EntryPoint: CustomAction1 InstallerClass: False SourcePath: Path to CustomAction.dll
Now, if I try to Build my Installer Project I get following Error:
ERROR: Entry point 'CustomAction1' not found in module 'PATH\CustomAction.dll' for custom action 'Primary output from CustomAction (Active)'.
What do I wrong? The Custom Action code was automatically generated by Visual Studio 2013!