Error MSB4036: The CollectFilesinFolder task was not found.

Problem

You get this error when using the Deployment Wizard to create a deployment folder for a web application project:

Error MSB4036: The "CollectFilesinFolder" task was not found.

Solution

Visual Studio 2010 is missing a component.  Typically, the Visual Web Developer component must be installed.  Use your control panel to install the missing components for Visual Studio.

See Also

Part IX:  Troubleshooting Applications

Application Generation and Compilation Error Messages