I have a ashx file that I need to get into the layouts directory during a solution deployment. I have this file in a mapped folder in VS2010 and works fine in my development environment. When I package the project, I can see that the file ends up in the wsp. When I move to another server, the files in the mapped folder are not getting added to the layouts directory. This contradicts what msdn says should happen. Is there something I am missing?
Both answers below are correct based on the information I provided. I discovered that the reason my files werent being added after a full retraction and deployment was because they were not being added to the manifest. I made an unnecessary manual edit to the package.template.xml file which prevented the new files I added to the mapped folder from the manifest. I discarded my manual changes and let the designer add the files for me. The files now appear in the layouts folder.