简体   繁体   中英

Custom Action, Unable to build custom action because the project output group does not have a key file

When I am trying to create an installation project, I get this error message when I try to build the installation class.

Unable to build custom action because the project output group does not have a key file.

What is wrong my custom action

I have a custom action that does some manipulation after the I have a custom action as follows.

  public class InstallerHelper:Installer
  {
    public override void Install(System.Collections.IDictionary stateSaver)
    {
      base.Install(stateSaver);
      Console.WriteLine("Hello World");
      Console.ReadLine();
    }
  }

Within your installation project, you need to identify a key file in the Project Output group that you have referenced.

To resolve the issue, right-click on the appropriate project output that you have added to the installation program, expand the KeyOutput node, and click in the (Files) box and click the ... button.

If there is nothing in there, then you should probably remove that output from your installer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM