You receive an "Unable to build custom action" error message when you build a Setup project (814744)
The information in this article applies to:
- Microsoft .NET Framework 1.0
- Microsoft Visual Studio .NET (2002), Academic Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Professional Edition
SYMPTOMSWhen you open an existing Microsoft Visual Studio .NET Setup
project with custom actions that refer to detected dependency files, and you
try to rebuild the project, you receive the following error:
Unable to build custom action named
'CustomActionName' because it references an object
that has been removed from the project.
WORKAROUNDTo work around this problem, exclude the existing detected
dependency, and then add the same dependency as a file. To do this, follow
these steps:
- In Solution Explorer, expand
Setup1.
- Expand Detected Dependencies.
- Right-click MyTestLibrary.dll, and then
click Exclude.
- In Solution Explorer, right-click Setup1,
point to Add, and then click File.
- Locate MyTestLibrary.dll, and then click
to select it. Click Open.
- On the View menu, point to
Editor, and then click Custom Actions.
Custom Actions Editor is displayed. - Right-click MyTestLibrary.dll, and then
click Delete.
- Right-click Install, and then click
Add Custom Action.
- Locate and then select the file that is added in step 5,
and then click OK.
- In Solution Explorer, right-click Setup1,
and then click Build.
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
This bug was corrected in Microsoft Visual Studio .NET (2003).
REFERENCESFor more information, visit the following MSDN Web sites:
Modification Type: | Major | Last Reviewed: | 1/26/2006 |
---|
Keywords: | kbvs2005swept kbvs2005doesnotapply kbenv kbDeployment kbIDEProject kbide kbsetup kbWindowsForms kbForms kbfix KB814744 kbAudDeveloper |
---|
|