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.
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.
Part VII: Troubleshooting Applications
Application Generation and Compilation Error Messages