Hi Psion,
From your description, I understand that you want to copy a special folder to the bin/debug folder. To achieve this goal, you can add the xcopy command in Build Events of the Web Application project. For example, please refer to the following steps:
1. Right click the project in Solution Explorer and then select ?Properties?.
2. Locate to ?Build Events? tag.
3. Add xcopy command in the ?Post-build event command line? area. For example:
del E:\program\WebApp1\bin\debug\temp /q
xcopy c:\temp E:\program\WebApp1\bin\debug\temp /i /e
4. Select ?On successful build? option in the ?Run the post-build event? dropdownlist.
After following these steps, Visual Studio will delete files and folders in the E:\program\WebApp1\bin\debug\temp folder and then copy c:\temp folder to the debug folder when build successfully.
Sincerely,
Benson Yu
Microsoft Online Community Support
Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.