Unable to build custom action named '<name>' because it references an object that has been removed from the project

The specified custom action cannot be built because the file that contains the custom action has been removed from the deployment project.

To correct this error

  1. Double-click the error in the task list to go to the custom action in the Custom Actions Editor.

  2. Make note of the property settings in the Properties window.

  3. Delete the custom action.

  4. On the Action menu, choose Add Custom Action.

  5. In the Select Item in Project dialog box, locate the custom action and add it to the project.

  6. In the Properties window, reset any properties as necessary to match the original custom action.

See Also

Tasks

How to: Add and Remove Custom Actions in the Custom Actions Editor

Other Resources

Custom Actions Management in Deployment