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.
Finally resolve the release success
Sometimes you will encounter: failed to copy file Bin\xxx.vshost.exe to Obj\release\package\packagetmp\bin
This error is mostly missing DLL or file can not be found; If you have any questions, you may join us ASP.NET/MVC QQ Group: 97157124
VS Publishing Site, error message: "Failed to copy file xxx to XXX, failed to find the file XX" three solutions!