我嘗試將自定義操作添加到安裝程序項目。我添加了一個自定義操作項目與下面的代碼:Visual Studio安裝程序項目:自定義操作 - >找不到入口點
public class CustomActions
{
[CustomAction]
public static ActionResult CustomAction1(Session session)
{
session.Log("Begin CustomAction1");
return ActionResult.Success;
}
}
在我的安裝項目,我加入到CustomAction_project參考,並添加以下條目添加到自定義操作 - >安裝:
名稱:從CustomAction主輸出(活動) 入口點:CustomAction1 InstallerClass:假 SOURCEPATH:路徑CustomAction.dll
現在,如果我嘗試建立我的安裝項目我獲得以下錯誤:
ERROR: Entry point 'CustomAction1' not found in module 'PATH\CustomAction.dll' for custom action 'Primary output from CustomAction (Active)'.
我該怎麼做?自定義操作代碼由Visual Studio 2013自動生成!