Publish the site when you may encounter such a situation, that is, the error message said: "Failed to copy the file xxx to XXX, failed to find the file xx", this problem generally has three solutions, personal inclination of the third,
The solution is as follows:
Scenario one, the system prompts the missing files back into the corresponding folder, and then publish. But if the time is too long to find the document itself, this program is not recommended;
Scenario two, delete the ". csproj" project file in the < Content include> corresponding parameter line, with "ctrl+f" to find the next one to delete. This option is not recommended if there is more content.
Scenario three, first the corresponding folder of the error right click "Exclude from the project", and then click on the release. When you're done, copy the previously excluded folders from your project to your published folder.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
VS Publishing Site, error message: "Failed to copy file xxx to XXX, failed to find the file XX" three solutions!